Skip to content

Commit

Permalink
Merge branch 'main' of github.com:yagoplx/x86routertools
Browse files Browse the repository at this point in the history
Merge beautysh commit
  • Loading branch information
yavincl committed Jun 8, 2021
2 parents 2b82b03 + 93761e1 commit 20a0344
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions routertools
Original file line number Diff line number Diff line change
Expand Up @@ -1514,8 +1514,8 @@ ap_stop(){
ifconfig $i down 2>/dev/null

if [[ -f /etc/routertools.d/scripts/stop-$i ]]; then
echo "Running custom stop script for interface $i"
source /etc/routertools.d/scripts/stop-$i
echo "Running custom stop script for interface $i"
source /etc/routertools.d/scripts/stop-$i
fi
done
}
Expand Down Expand Up @@ -1676,8 +1676,8 @@ ap_start(){
fi

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

done
Expand Down Expand Up @@ -2005,7 +2005,7 @@ get_inet_iface_status(){
ledctl blink

if [[ $istatus -gt 0 ]]; then
ifnq echo "Interface $inet_iface is up."
ifnq echo "Interface $inet_iface is up."
return 0
else
echo "Interface $inet_iface is down."
Expand Down Expand Up @@ -2126,14 +2126,14 @@ check_internet(){
local addr_dns_4="github.com"

if get_inet_iface_status >/dev/null; then
ifnq echo "Internet interface test: Online"
ifnq echo "Internet interface test: Online"
else
echo "Internet interface test: Offline"
bad_inet_iface=1
fi

if get_inet_status "1.1.1.1" >/dev/null; then
ifnq echo "Internet availability test 1 (1.1.1.1): Online"
ifnq echo "Internet availability test 1 (1.1.1.1): Online"
else
echo "Internet availability test 1 (1.1.1.1): Offline"
bad_inet_1=1
Expand Down Expand Up @@ -3087,7 +3087,7 @@ parse_cmdline ${final_args}

# Handle return value and errors
if [[ $count_arg -ne 0 ]]; then
ifv _exit
ifv _exit
else
exit $?
fi

0 comments on commit 20a0344

Please sign in to comment.