mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
cccc9fbc3e
PR: ports/174539 Submitted by: Olivier Cochard-Labbe <olivier@cochard.me>
30 lines
444 B
Bash
30 lines
444 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: fprobe
|
|
# REQUIRE: NETWORKING
|
|
# KEYWORD: shutdown
|
|
|
|
# Add the following lines to /etc/rc.conf to enable %%NAME%%:
|
|
#
|
|
#%%NAME%%_enable="YES"
|
|
#
|
|
# See fprobe(8) for %%NAME%%_flags
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="%%NAME%%"
|
|
rcvar=%%NAME%%_enable
|
|
|
|
load_rc_config "$name"
|
|
|
|
: ${fprobe_enable="NO"}
|
|
: ${fprobe_flags:="-i lo0 127.0.0.1:2055"}
|
|
|
|
command="%%PREFIX%%/sbin/fprobe"
|
|
pidfile="/var/run/$name.pid"
|
|
|
|
run_rc_command "$1"
|