a small scripting question

Kirtis Bakalarczyk kirtis.bakalarczyk at gmail.com
Fri Apr 1 15:52:27 UTC 2005


On Apr 1, 2005 10:36 AM, 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

I'm not sure about the route statements as i don't usually mess around
with that but the 'fi' at the bottom shouldn't be there.  It usually
marks the end of an if statement.

> 
> 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
> 
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>




More information about the ubuntu-users mailing list