diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-08-27 00:42:33 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-08-27 00:42:33 +0000 |
commit | f0c8400658ac5b039bb48dbb74b02f75d52b9723 (patch) | |
tree | 7ef2c062b8733bbd08473f6c2bed78c7ad9708d1 /obsolete-buildroot/sources/openwrt/ipkg/fprobe/root | |
parent | aa210b58909434abaa63a7a6cd898a43ba61c3f3 (diff) |
various patches
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
Diffstat (limited to 'obsolete-buildroot/sources/openwrt/ipkg/fprobe/root')
-rw-r--r-- | obsolete-buildroot/sources/openwrt/ipkg/fprobe/root/etc/fprobe.conf | 8 | ||||
-rw-r--r-- | obsolete-buildroot/sources/openwrt/ipkg/fprobe/root/etc/init.d/fprobe | 23 |
2 files changed, 31 insertions, 0 deletions
diff --git a/obsolete-buildroot/sources/openwrt/ipkg/fprobe/root/etc/fprobe.conf b/obsolete-buildroot/sources/openwrt/ipkg/fprobe/root/etc/fprobe.conf new file mode 100644 index 000000000..3abfba6f9 --- /dev/null +++ b/obsolete-buildroot/sources/openwrt/ipkg/fprobe/root/etc/fprobe.conf @@ -0,0 +1,8 @@ +# Interface to listen on +IFNAME=any + +# NetFlow collector (host:port) +REMOTE=192.168.1.100:2055 + +# Maximum log level (0=EMERG, 1=ALERT, 2=CRIT, 3=ERR, 4=WARNING, 5=NOTICE, 6=INFO, 7=DEBUG) +LOG_LEVEL=3 diff --git a/obsolete-buildroot/sources/openwrt/ipkg/fprobe/root/etc/init.d/fprobe b/obsolete-buildroot/sources/openwrt/ipkg/fprobe/root/etc/init.d/fprobe new file mode 100644 index 000000000..2a61fceb9 --- /dev/null +++ b/obsolete-buildroot/sources/openwrt/ipkg/fprobe/root/etc/init.d/fprobe @@ -0,0 +1,23 @@ +#!/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 $? |