--- trunk/magellan-initscripts/etc/rc.d/init.d/network 2007/12/17 14:30:25 640 +++ trunk/magellan-initscripts/etc/rc.d/init.d/network 2008/03/20 12:43:14 684 @@ -1,5 +1,5 @@ #!/bin/bash -# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/network,v 1.16 2007-12-17 14:30:25 niro Exp $ +# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/network,v 1.17 2008-03-20 12:43:14 niro Exp $ #%rlevels: 0:k 1:k 2:k 3:s 4:s 5:s 6:k #%start: 20 @@ -421,6 +421,8 @@ echo -e ${COLOREDSTAR}"Setting up default gateway for ${COLBLUE}${iface}${COLDEFAULT} ..." route add default gateway ${GATEWAY} metric 1 dev ${iface} evaluate_retval + + unset GATEWAY fi # setup /etc/resolv.conf @@ -434,6 +436,8 @@ do echo "nameserver ${dns}" >> /etc/resolv.conf done + + unset NAMESERVER fi done