0116cb6015
Noticed by: Keith Ng
17 lines
477 B
Bash
17 lines
477 B
Bash
#!/bin/sh
|
|
PORTSENTRY="%%PREFIX%%/bin/portsentry"
|
|
|
|
case "$1" in
|
|
start)
|
|
echo -n ' portsentry ('
|
|
${PORTSENTRY} -tcp > /dev/null && echo -n 'tcp'
|
|
${PORTSENTRY} -udp > /dev/null && echo -n ' udp'
|
|
echo -n ')'
|
|
;;
|
|
stop)
|
|
killall `basename ${PORTSENTRY}`
|
|
;;
|
|
*)
|
|
echo "Usage: `basename $0` {start|stop}" >&2
|
|
;;
|
|
esac
|