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
389 B

  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2013 OpenWrt.org
  3. # start after and stop before networking
  4. START=20
  5. STOP=89
  6. USE_PROCD=1
  7. service_triggers()
  8. {
  9. procd_add_reload_trigger "yunbridge"
  10. }
  11. start_service()
  12. {
  13. [ "$(uci -q get yunbridge.config.disabled)" = "1" ] && return 0
  14. procd_open_instance
  15. procd_set_param command "/sbin/yunbridge"
  16. procd_set_param respawn
  17. procd_close_instance
  18. }