Merge branches 'warthog9' and 'master' of http://etherboot.org/share/warthog9/BKO
[people/pravin/BKO.git] / pxeknife / red_hat / fedora_11_live_cd / httpfs / static / udhcpc.sh
1 #!/static/sh
2
3 case "$1" in
4         renew|bound)
5                 ifconfig $interface $ip up
6
7                 if [ -n "$router" ] ; then
8                         for i in $router ; do
9                                 route add -net 0.0.0.0 netmask 0.0.0.0 gw $i dev $interface
10                         done
11                 fi
12                 ;;
13         * )
14                 ifconfig $interface 0.0.0.0
15                 ;;
16 esac
17
18 exit 0