diff options
Diffstat (limited to 'obsolete-buildroot/sources/openwrt/ipkg/dhcp-fwd/root/etc/init.d')
-rw-r--r-- | obsolete-buildroot/sources/openwrt/ipkg/dhcp-fwd/root/etc/init.d/dhcp-fwd | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/obsolete-buildroot/sources/openwrt/ipkg/dhcp-fwd/root/etc/init.d/dhcp-fwd b/obsolete-buildroot/sources/openwrt/ipkg/dhcp-fwd/root/etc/init.d/dhcp-fwd new file mode 100644 index 000000000..597e1fc78 --- /dev/null +++ b/obsolete-buildroot/sources/openwrt/ipkg/dhcp-fwd/root/etc/init.d/dhcp-fwd @@ -0,0 +1,17 @@ +#!/bin/sh + +case $1 in + start) + [ -d /var/log ] || mkdir -p /var/log + [ -d /var/run/dhcp-wfd ] || mkdir -p /var/run/dhcp-fwd + dhcp-fwd + ;; + stop) + [ -f /var/run/dhcpd-fwd.pid ] && kill $(cat /var/run/dhcpd-fwd.pid) 2>/dev/null + ;; + *) + echo "usage: $0 (start|stop)" + exit 1 +esac + +exit $? |