mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
isc-dhcp: update to 4.3.3. Migrate from oldplackages
Signed-off-by: Antony Antony <antony@phenome.org>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=60
|
||||
|
||||
lease_file=/var/dhclient6.leases
|
||||
config_file=/etc/dhclient6.conf
|
||||
pid_file=/var/run/dhclient6.pid
|
||||
script_file=/usr/sbin/dhclient-script
|
||||
|
||||
start() {
|
||||
/usr/sbin/dhclient -q -nw -6 -cf $config_file -lf $lease_file -pf $pid_file -sf $script_file `/sbin/uci get network.wan.ifname`
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
if [ ! -e $pid_file ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
kill -9 `cat $pid_file`
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
rm $pid_file
|
||||
}
|
||||
Reference in New Issue
Block a user