dhcpcd.init 375 B

123456789101112131415161718192021222324
  1. #!/bin/sh /etc/rc.common
  2. #
  3. # Copyright (C) 2014 OpenWrt.org
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. START=30
  9. STOP=85
  10. USE_PROCD=1
  11. start_service()
  12. {
  13. procd_open_instance
  14. procd_set_param command /sbin/dhcpcd -B
  15. procd_set_param respawn
  16. procd_close_instance
  17. }
  18. reload_service()
  19. {
  20. /sbin/dhcpcd -n
  21. }