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.

28 lines
579 B

  1. #!/bin/sh /etc/rc.common
  2. #
  3. # Copyright (C) 2016-2019 eGloo, Incorporated
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. START=50
  7. STOP=50
  8. USE_PROCD=1
  9. PROG=/usr/sbin/netifyd
  10. NETIFYD_AUTODETECT=yes
  11. start_service() {
  12. mkdir -p /etc/netify.d
  13. mkdir -p /var/run/netifyd
  14. source /usr/share/netifyd/functions.sh
  15. NETIFYD_OPTS=$(auto_detect_options)
  16. load_modules
  17. procd_open_instance
  18. procd_set_param command $PROG -R $NETIFYD_OPTS
  19. procd_set_param file /etc/netifyd.conf
  20. procd_set_param respawn
  21. procd_close_instance
  22. }