1 #!/bin/sh /etc/rc.common
5 lease_file=/var/dhclient.leases
6 config_file=/etc/dhclient.conf
7 pid_file=/var/run/dhclient.pid
8 script_file=/usr/sbin/dhclient-script
11 /usr/sbin/dhclient -q -nw -cf $config_file -lf $lease_file -pf $pid_file -sf $script_file `/sbin/uci get network.wan.ifname`
19 if [ ! -e $pid_file ]; then
23 kill -9 `cat $pid_file`