Açıklama Yok

rtl_ais.init 401B

12345678910111213141516171819
  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. }