a small scripting question

Vram lamsokvr at xprt.net
Fri Apr 1 18:09:00 UTC 2005


On Fri, 2005-04-01 at 16:36 +0100, 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



if [ $# -ne 0 ]
then
	# my first if loop
	# This file exists



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
> 
> 
> 
> 


See modifications above..

This tests to see if this file exists...
Always a secure move.



Ta-ta

Vram







More information about the ubuntu-users mailing list