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.

29 lines
573 B

  1. #!/bin/sh /etc/rc.common
  2. #
  3. # Copyright (C) 2006-2015 OpenWrt.org
  4. #
  5. USE_PROCD=1
  6. START=50
  7. NAME=radiusd
  8. PROG=/usr/sbin/radiusd
  9. DEFAULT=/etc/default/radiusd
  10. start_service()
  11. {
  12. [ -f $DEFAULT ] && . $DEFAULT
  13. mkdir -p /var/log
  14. mkdir -p /var/run
  15. mkdir -p /var/db/radacct
  16. mkdir -p /tmp/radiusd
  17. procd_open_instance
  18. procd_set_param command $PROG -s
  19. procd_set_param env LD_LIBRARY_PATH=/usr/lib/freeradius3
  20. [ -n "$IPADDR" ] && procd_append_param command -i $IPADDR
  21. [ -n "$OPTIONS" ] && procd_append_param command $OPTIONS
  22. procd_set_param respawn
  23. procd_close_instance
  24. }