8557c78f9e47ed95624a448e5b7143358aa1e8a3
[openwrt.git] / openwrt / package / dhcp-forwarder / ipkg / dhcp-forwarder / etc / init.d / dhcp-fwd
1 #!/bin/sh
2
3 LOG_D=/var/log
4 RUN_D=/var/run
5 PID_F=$RUN_D/dhcpd-fwd.pid
6
7 case $1 in
8 start)
9 [ -d $LOG_D ] || mkdir -p $LOG_D
10 [ -d $RUN_D ] || mkdir -p $RUN_D
11 dhcp-fwd >/dev/null 2>&1
12 ;;
13 stop)
14 [ -f $PID_F ] && kill $(cat $PID_F) >/dev/null 2>&1
15 ;;
16 *)
17 echo "usage: $0 (start|stop)"
18 exit 1
19 esac
20
21 exit $?
This page took 0.048089 seconds and 3 git commands to generate.