diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-02-03 07:10:53 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-02-03 07:11:59 +0000 |
commit | 513a07446e02609236cb81228151f9c554b41c18 (patch) | |
tree | 3a9e240ce4af2fe3a016055d31330e642cbefc83 /main/fprobe/fprobe.initd | |
parent | ac17c674ac2deded5e730fb21ccd7480930360ea (diff) | |
download | aports-513a07446e02609236cb81228151f9c554b41c18.tar.bz2 aports-513a07446e02609236cb81228151f9c554b41c18.tar.xz |
main/fprobe: fix shell variable expansion bug in init.d script
ref #990
Diffstat (limited to 'main/fprobe/fprobe.initd')
-rwxr-xr-x[-rw-r--r--] | main/fprobe/fprobe.initd | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/fprobe/fprobe.initd b/main/fprobe/fprobe.initd index a14f1e6bcc..d4fed4e8c9 100644..100755 --- a/main/fprobe/fprobe.initd +++ b/main/fprobe/fprobe.initd @@ -15,8 +15,9 @@ PIDFILE="/var/run/fprobe$PIDFILE_EXTRA.pid" start() { ebegin "Starting fprobe" local OPTS="" + set -- [ "${PROMISC}" == "yes" ] || OPTS="${OPTS} -p" - [ -n "${FILTER}" ] && OPTS="${OPTS} -f '${FILTER}'" + [ -n "${FILTER}" ] && set -- -f "${FILTER}" for optname in i:IFACE s:TIMER_EXPIRED g:TIME_FRAGMENTED d:TIMER_IDLE \ e:TIMER_ACTIVE n:FLOW_VER a:LOCALIP x:SNMP_IFACE b:MEMBULK \ m:MEMLIMIT q:PENDING B:KERNBUF r:RTPRIO t:DELAY S:SNAPLEN \ @@ -28,7 +29,7 @@ start() { OPTS="${OPTS} -l 1:${PIDFILE_ID} ${COLLECTORS}" start-stop-daemon --start --exec $BIN \ --pidfile ${PIDFILE} \ - -- ${OPTS} + -- "$@" ${OPTS} eend $? } |