|
From: Bruce S. <bl...@us...> - 2004-04-23 21:13:00
|
Update of /cvsroot/devil-linux/build/config/etc/init.d In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8548/config/etc/init.d Modified Files: network Log Message: Fix static routes with full subnet mask not working. Index: network =================================================================== RCS file: /cvsroot/devil-linux/build/config/etc/init.d/network,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- network 10 Apr 2004 00:14:49 -0000 1.31 +++ network 23 Apr 2004 21:12:40 -0000 1.32 @@ -263,7 +263,7 @@ fi # add the route - if [ -n "${netmask##*.*}" ]; then + if [ -z "${netmask##*.*}" ]; then echo " adding route to $CMD ${target}${netmask:+/$netmask}${gateway:+ via gateway $gateway} on $DEVICE" route add -$CMD ${target} ${netmask:+netmask $netmask} ${gateway:+gw $gateway} dev $DEVICE else |