#!/bin/sh case "$1" in deconfig) ifconfig $interface 0.0.0.0 up ;; bound) ifconfig $interface $ip netmask $subnet broadcast $broadcast up echo "search $domain" > /etc/resolv.conf for i in $dns; do echo "nameserver $i" >> /etc/resolv.conf done for i in $router; do route add default gw $i done ;; renew) ;; nak) ;; *) ;; esac