20424fc91a
SVN-Revision: 680
21 lines
283 B
Bash
21 lines
283 B
Bash
#!/bin/sh
|
|
|
|
LOG_D=/var/log
|
|
RUN_D=/var/run
|
|
PID_F=$RUN_D/dhcpd-fwd.pid
|
|
|
|
case $1 in
|
|
start)
|
|
[ -d $LOG_D ] || mkdir -p $LOG_D
|
|
[ -d $RUN_D ] || mkdir -p $RUN_D
|
|
dhcp-fwd
|
|
;;
|
|
stop)
|
|
[ -f $PID_F ] && kill $(cat $PID_F)
|
|
;;
|
|
*)
|
|
echo "usage: $0 (start|stop)"
|
|
exit 1
|
|
esac
|
|
|
|
exit $?
|