Subversion Repositories livecd

Rev

Rev 1 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 108
Line 16... Line 16...
16
        renew|bound)
16
        renew|bound)
17
                /sbin/ifconfig $interface $ip $BROADCAST $NETMASK
17
                /sbin/ifconfig $interface $ip $BROADCAST $NETMASK
18
 
18
 
19
                if [ -n "$router" ] ; then
19
                if [ -n "$router" ] ; then
20
                        echo "deleting routers"
20
                        echo "deleting routers"
21
                        while route del default gw 0.0.0.0 dev $interface ; do
21
                        while route del default gw 0.0.0.0 dev $interface 2>/dev/null; do
22
                                :
22
                                :
23
                        done
23
                        done
24
 
24
 
25
                        for i in $router ; do
25
                        for i in $router ; do
26
                                route add default gw $i dev $interface
26
                                route add default gw $i dev $interface