From 097635b79bc6ddd6066a8369db6e298a25daa96e Mon Sep 17 00:00:00 2001 From: mbm Date: Tue, 24 Aug 2004 23:50:14 +0000 Subject: massive changes - sstrip cleanup from mjn3 - various patches from nico and others: http://openwrt.org/forum/viewtopic.php?t=368 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@145 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../openwrt/ipkg/dhcp-fwd/root/etc/init.d/dhcp-fwd | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 obsolete-buildroot/sources/openwrt/ipkg/dhcp-fwd/root/etc/init.d/dhcp-fwd (limited to 'obsolete-buildroot/sources/openwrt/ipkg/dhcp-fwd/root/etc/init.d') 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 $? -- cgit v1.2.3