Skip to content

Commit 20a0344

Browse files
committed
Merge branch 'main' of github.com:yagoplx/x86routertools
Merge beautysh commit
2 parents 2b82b03 + 93761e1 commit 20a0344

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

routertools

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,8 +1514,8 @@ ap_stop(){
15141514
ifconfig $i down 2>/dev/null
15151515

15161516
if [[ -f /etc/routertools.d/scripts/stop-$i ]]; then
1517-
echo "Running custom stop script for interface $i"
1518-
source /etc/routertools.d/scripts/stop-$i
1517+
echo "Running custom stop script for interface $i"
1518+
source /etc/routertools.d/scripts/stop-$i
15191519
fi
15201520
done
15211521
}
@@ -1676,8 +1676,8 @@ ap_start(){
16761676
fi
16771677

16781678
if [[ -f /etc/routertools.d/scripts/start-$i ]]; then
1679-
echo "Running custom start script for interface $i"
1680-
source /etc/routertools.d/scripts/start-$i
1679+
echo "Running custom start script for interface $i"
1680+
source /etc/routertools.d/scripts/start-$i
16811681
fi
16821682

16831683
done
@@ -2005,7 +2005,7 @@ get_inet_iface_status(){
20052005
ledctl blink
20062006

20072007
if [[ $istatus -gt 0 ]]; then
2008-
ifnq echo "Interface $inet_iface is up."
2008+
ifnq echo "Interface $inet_iface is up."
20092009
return 0
20102010
else
20112011
echo "Interface $inet_iface is down."
@@ -2126,14 +2126,14 @@ check_internet(){
21262126
local addr_dns_4="github.com"
21272127

21282128
if get_inet_iface_status >/dev/null; then
2129-
ifnq echo "Internet interface test: Online"
2129+
ifnq echo "Internet interface test: Online"
21302130
else
21312131
echo "Internet interface test: Offline"
21322132
bad_inet_iface=1
21332133
fi
21342134

21352135
if get_inet_status "1.1.1.1" >/dev/null; then
2136-
ifnq echo "Internet availability test 1 (1.1.1.1): Online"
2136+
ifnq echo "Internet availability test 1 (1.1.1.1): Online"
21372137
else
21382138
echo "Internet availability test 1 (1.1.1.1): Offline"
21392139
bad_inet_1=1
@@ -3087,7 +3087,7 @@ parse_cmdline ${final_args}
30873087

30883088
# Handle return value and errors
30893089
if [[ $count_arg -ne 0 ]]; then
3090-
ifv _exit
3090+
ifv _exit
30913091
else
30923092
exit $?
30933093
fi

0 commit comments

Comments
 (0)