0696600c41
The reasons for this are forward looking to pkgbase: * /sbin/init is a special binary; try not to replace it with every package update because an rc script was touched. (a follow-up commit will make init its own package) * having rc in its own place will allow more easy replacement of the rc framework with alternatives, such as openrc. Discussed with: brd (during BSDCam), kmoore Requested by: cem, bz PR: 231522 Approved by: re (gjb)
38 lines
835 B
Bash
Executable File
38 lines
835 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: sppp
|
|
# REQUIRE: root
|
|
# BEFORE: netif
|
|
# KEYWORD: nojail
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="sppp"
|
|
desc="Point to point protocol network layer for synchronous lines"
|
|
start_cmd="sppp_start"
|
|
stop_cmd=":"
|
|
|
|
sppp_start()
|
|
{
|
|
# Special options for sppp(4) interfaces go here. These need
|
|
# to go _before_ the general ifconfig since in the case
|
|
# of hardwired (no link1 flag) but required authentication, you
|
|
# cannot pass auth parameters down to the already running interface.
|
|
#
|
|
for ifn in ${sppp_interfaces}; do
|
|
eval spppcontrol_args=\$spppconfig_${ifn}
|
|
if [ -n "${spppcontrol_args}" ]; then
|
|
# The auth secrets might contain spaces; in order
|
|
# to retain the quotation, we need to eval them
|
|
# here.
|
|
eval spppcontrol ${ifn} ${spppcontrol_args}
|
|
fi
|
|
done
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|