mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-02 16:09:43 +02:00
f0c8400658
nico: buildroot-20040825-kmodules.patch.txt buildroot-20040825-tcpdump.patch.txt buildroot-20040825-libpcap.patch.txt buildroot-20040825-libpthread.patch.txt buildroot-20040825-fprobe.patch.txt buildroot-20040825-pptp-client.patch.txt twolife: iproute2.patch.txt git-svn-id: svn://svn.openwrt.org/openwrt/trunk@149 3c298f89-4303-0410-b956-a3cf2f4a3e73
24 lines
473 B
Bash
24 lines
473 B
Bash
#!/bin/sh
|
|
|
|
DEFAULT=/etc/fprobe.conf
|
|
OPTIONS=""
|
|
[ -f $DEFAULT ] && . $DEFAULT
|
|
[ -n "$IFNAME" ] && OPTIONS="$OPTIONS -i $IFNAME"
|
|
[ -n "$LOG_LEVEL" ] && OPTIONS="$OPTIONS -v $LOG_LEVEL"
|
|
[ -n "$REMOTE" ] && OPTIONS="$OPTIONS $REMOTE"
|
|
|
|
case $1 in
|
|
start)
|
|
[ -d /var/run ] || mkdir -p /var/run
|
|
/usr/sbin/fprobe $OPTIONS
|
|
;;
|
|
stop)
|
|
[ -f /var/run/fprobe.pid ] && kill $(cat /var/run/fprobe.pid) >/dev/null 2>&1
|
|
;;
|
|
*)
|
|
echo "usage: $0 (start|stop)"
|
|
exit 1
|
|
esac
|
|
|
|
exit $?
|