a small scripting question

Jonathan McLoughlin cjm at europe.renre.com
Fri Apr 1 15:46:17 UTC 2005


route statements look OK
Why do you need a 'fi' without an if statement?

david 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).
>
>Many thanks
>
>David
>
>
>
>
>  
>





More information about the ubuntu-users mailing list