2 # Sample udhcpc renew script
4 RESOLV_CONF
="/tmp/resolv.conf"
6 if test -n "$broadcast"; then
7 BROADCAST
="broadcast $broadcast"
10 if test -n "$subnet"; then
11 NETMASK
="netmask $subnet"
14 /sbin
/ifconfig
$interface $ip $BROADCAST $NETMASK
16 if test -n "$router"; then
17 echo "deleting routers"
18 while /sbin
/route del default gw
0.0.0.0 dev
$interface
24 /sbin
/route add default gw
$i dev
$interface
28 echo -n > $RESOLV_CONF
30 if test -n "$domain"; then
31 echo domain
$domain >> $RESOLV_CONF
36 echo nameserver
$i >> $RESOLV_CONF
This page took 0.042316 seconds and 5 git commands to generate.