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.

25 lines
477 B

  1. #!/bin/sh /etc/rc.common
  2. START=85
  3. USE_PROCD=1
  4. exec 2>/dev/null
  5. trm_script="/usr/bin/travelmate.sh"
  6. start_service()
  7. {
  8. ubus -t 30 wait_for network.wireless
  9. if [ $(($?)) -eq 0 ]
  10. then
  11. procd_open_instance
  12. procd_set_param command "${trm_script}"
  13. procd_close_instance
  14. else
  15. logger -s "travelmate [procd]:" "no wlan devices found, travelmate startup canceled"
  16. fi
  17. }
  18. service_triggers()
  19. {
  20. procd_add_reload_trigger "travelmate"
  21. }