blob: 55694ca0bf0657b524bcb7cd9c49951ac3cc3df3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh
#
# Author: Emanuel Haupt <ehaupt@FreeBSD.org>
#
# $FreeBSD$
#
# PROVIDE: socat
# REQUIRE: LOGIN
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable socat:
# socat_enable="YES"
# socat_flags="<set as needed>"
. %%RC_SUBR%%
name="socat"
rcvar=${name}_enable
command=%%PREFIX%%/bin/${name}
command_args="&"
load_rc_config $name
: ${socat_enable="NO"}
run_rc_command "$1"
|