Files
AlpinePackages/rflink/rflink.initd
2021-12-10 18:21:45 +00:00

18 lines
324 B
Plaintext

#!/sbin/openrc-run
supervisor=supervise-daemon
name=rflink
. /etc/rflink.conf
command="/media/mmcblk0p1/RFlink"
command_args="$TCP_port $PIN_TX $PIN_RX $log_level"
depend() {
use logger
need net
}
start_pre() {
if [ ! -f "/etc/rflink.conf" ]; then
echo "Config file not found"
exit 130
fi
}