1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-12 12:13:08 +02:00
openwrt-xburst/obsolete-buildroot/sources/openwrt/ipkg/dhcp-fwd/root/etc/init.d/dhcp-fwd
mbm 097635b79b 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
2004-08-24 23:50:14 +00:00

18 lines
295 B
Bash

#!/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 $?