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

  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2015 OpenWrt.org
  3. START=99
  4. USE_PROCD=1
  5. PROG=/usr/bin/rtl_ais
  6. start_service() {
  7. enabled="$(uci_get rtl_ais @rtl_ais[0] enabled 0)"
  8. ppm="$(uci_get rtl_ais @rtl_ais[0] ppm 0)"
  9. [ "$enabled" != "1" ] && return
  10. procd_open_instance
  11. procd_set_param command "$PROG" -p "$ppm"
  12. procd_set_param respawn
  13. procd_close_instance
  14. }