RFLink: Inital commit

This commit is contained in:
2021-12-10 18:21:45 +00:00
parent bf37b42835
commit da3a1efca8
3 changed files with 61 additions and 0 deletions

18
rflink/rflink.initd Normal file
View File

@@ -0,0 +1,18 @@
#!/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
}