Skip to content

Commit f4e2135

Browse files
committed
chore: refine Chnroute format
1 parent d88a7b4 commit f4e2135

File tree

4 files changed

+10725
-10562
lines changed

4 files changed

+10725
-10562
lines changed

luci-app-openclash/root/etc/init.d/openclash

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ change_dns() {
173173
if [ "$1" -eq 1 ]; then
174174
uci -q del openclash.config.dnsmasq_server
175175
config_load "dhcp"
176-
config_list_foreach "$(uci show dhcp.@dnsmasq[0].server |awk -F '.' '{print $2}')" "server" save_dnsmasq_server
176+
config_list_foreach "$(uci -q show dhcp.@dnsmasq[0].server |awk -F '.' '{print $2}')" "server" save_dnsmasq_server
177177
uci -q del dhcp.@dnsmasq[-1].server
178178
uci -q add_list dhcp.@dnsmasq[0].server=127.0.0.1#"$dns_port"
179179
uci -q set openclash.config.dnsmasq_noresolv="$(uci -q get dhcp.@dnsmasq[0].noresolv)"
@@ -2954,7 +2954,7 @@ start()
29542954

29552955
enable=$(uci -q get openclash.config.enable)
29562956
[ "$enable" != "1" ] && LOG_OUT "Warning: OpenClash Now Disabled, Need Start From Luci Page, Exit..." && SLOG_CLEAN && del_lock && exit 0
2957-
service openclash enable
2957+
service openclash enable 2>/dev/null
29582958
LOG_OUT "OpenClash Start Running..."
29592959

29602960
config_choose

0 commit comments

Comments
 (0)