mirror of
https://git.freebsd.org/ports.git
synced 2025-06-21 04:30:37 -04:00
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
|