a small scripting question
Daniel Robitaille
robitaille at gmail.com
Fri Apr 1 15:51:55 UTC 2005
> Is the following a valid script?
>
> #! /bin/sh
> route add -host 192.168.129.1 usbd0
> route delete -net 192.168.129.0/24 usbd0
> route add default gw 192.168.129.1
> fi
>
> If I save this and make it executable and put it in the appropriate rc.x
> folder will it work? (This is for my zaurus not for my Ubuntu box).
no. you will get an error due to that "fi" statement on the last line.
"fi" is an endif statement, and thus need an appropriate "if"
statement before.
More information about the ubuntu-users
mailing list