blob: 03d06b346d4cf834ae17ca734a42d3fb41aca9de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#/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
|