bug fix
This commit is contained in:
@@ -6,10 +6,7 @@ chmod +x /etc/init.d/smartdns
|
|||||||
[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0
|
[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0
|
||||||
. ${IPKG_INSTROOT}/lib/functions.sh
|
. ${IPKG_INSTROOT}/lib/functions.sh
|
||||||
default_postinst $0 $@
|
default_postinst $0 $@
|
||||||
|
ret=$?
|
||||||
|
/etc/init.d/smartdns enable
|
||||||
|
exit $ret
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -222,6 +222,7 @@ start_service() {
|
|||||||
uci delete smartdns.@smartdns[0].old_port 2>/dev/null
|
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_redirect="$redirect" 2>/dev/null
|
||||||
uci add_list smartdns.@smartdns[0].old_port="$SMARTDNS_PORT" 2>/dev/null
|
uci add_list smartdns.@smartdns[0].old_port="$SMARTDNS_PORT" 2>/dev/null
|
||||||
|
uci commit smartdns
|
||||||
|
|
||||||
config_foreach load_server "server"
|
config_foreach load_server "server"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user