This commit is contained in:
Nick Peng
2018-12-08 17:01:43 +08:00
parent 39f6b98bc0
commit d6911608fc
2 changed files with 4 additions and 6 deletions

View File

@@ -6,10 +6,7 @@ chmod +x /etc/init.d/smartdns
[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0
. ${IPKG_INSTROOT}/lib/functions.sh
default_postinst $0 $@
ret=$?
/etc/init.d/smartdns enable
exit $ret

View File

@@ -222,6 +222,7 @@ start_service() {
uci delete smartdns.@smartdns[0].old_port 2>/dev/null
uci add_list smartdns.@smartdns[0].old_redirect="$redirect" 2>/dev/null
uci add_list smartdns.@smartdns[0].old_port="$SMARTDNS_PORT" 2>/dev/null
uci commit smartdns
config_foreach load_server "server"