horst.init 449 B

12345678910111213141516171819202122
  1. #!/bin/sh /etc/rc.common
  2. START=94
  3. USE_PROCD=1
  4. PROG=/usr/sbin/horst
  5. start_service() {
  6. config_load horst
  7. config_get dis "init" 'disabled' '0'
  8. [ "$dis" == "0" ] || exit
  9. config_get intf "init" 'interface' 'wlan0'
  10. config_get scan "init" 'scan' '0'
  11. [ "$scan" == "0" ] && scan='' || scan="-s"
  12. procd_open_instance
  13. procd_set_param command $PROG -q -i $intf $scan -N
  14. procd_set_param netdev $intf
  15. procd_set_param respawn
  16. procd_close_instance
  17. }