projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
disable ieee802dot11 module (fix segfault with snmpwalk),
[openwrt.git]
/
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 $?