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.

16 lines
330 B

  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2014 OpenWrt.org
  3. START=60
  4. USE_PROCD=1
  5. PROG=/usr/sbin/nsd
  6. start_service() {
  7. mkdir -p /var/db/nsd
  8. chown network /var/db/nsd
  9. chmod 640 /etc/nsd/*.conf 2>/dev/null
  10. chgrp network /etc/nsd/*.conf 2>/dev/null
  11. procd_open_instance
  12. procd_set_param command "$PROG" -d
  13. procd_close_instance
  14. }