add all patches in a well defined form. added with cvs -ko to disable
[openwrt.git] / openwrt / package / net-snmp / files / snmpd.init
1 #!/bin/sh
2
3 DEFAULT=/etc/default/snmpd
4 LIB_D=/var/lib/snmp
5 LOG_D=/var/log
6 RUN_D=/var/run
7 PID_F=$RUN_D/snmpd.pid
8
9 [ -f $DEFAULT ] && . $DEFAULT
10
11 case $1 in
12 start)
13 [ -d $LIB_D ] || mkdir -p $LIB_D
14 [ -d $LOG_D ] || mkdir -p $LOG_D
15 [ -d $RUN_D ] || mkdir -p $RUN_D
16 snmpd $OPTIONS
17 ;;
18 stop)
19 [ -f $PID_F ] && kill $(cat $PID_F)
20 ;;
21 *)
22 echo "usage: $0 (start|stop)"
23 exit 1
24 esac
25 exit $?
This page took 0.049968 seconds and 5 git commands to generate.