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.

22 lines
449 B

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