You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
401 B

#!/bin/sh /etc/rc.common
# Copyright (C) 2015 OpenWrt.org
START=99
USE_PROCD=1
PROG=/usr/bin/rtl_ais
start_service() {
enabled="$(uci_get rtl_ais @rtl_ais[0] enabled 0)"
ppm="$(uci_get rtl_ais @rtl_ais[0] ppm 0)"
[ "$enabled" != "1" ] && return
procd_open_instance
procd_set_param command "$PROG" -p "$ppm"
procd_set_param respawn
procd_close_instance
}