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

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