a small scripting question

Thom May thom at ubuntu.com
Fri Apr 1 15:51:06 UTC 2005


* david (nux at blueyonder.co.uk) wrote :
> 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).
> 
you have a trailing 'fi' which'll cause breakage. besides that it seems ok.
-Thom




More information about the ubuntu-users mailing list