1
0
mirror of https://github.com/moshix/mvs.git synced 2026-01-27 12:12:13 +00:00

small enhancements

This commit is contained in:
moshix
2023-04-17 05:19:05 -05:00
committed by GitHub
parent 06b83b87d0
commit 988385b5a3

View File

@@ -80,7 +80,7 @@ do
done
if [[ "$1" == "-e" ]]; then
if [[ "$1" == "-e" ]] || [[ "$1" == "-v" ]]; then
if [[ -z "$2" ]]; then
delay=1.4
ext=`timeout $delay curl ifconfig.me 2>/dev/null`
@@ -122,11 +122,6 @@ else
fi
if [[ "$1" == "-v" ]]; then
echo -e "${white}Version "$version"${reset}"
fi
os_type # call os type determination
if [[ "$ostype" == "Linux" ]]; then
routenic=`route | grep '^default' | grep -o '[^ ]*$'` # for Linux
echo -e "${blue}NIC to Internet: \t${white}$routenic${reset}"
@@ -143,3 +138,7 @@ if [[ -z "$dnscheck" ]]; then
else
echo -e "${blue}DNS config: \t\t${white}OK ${reset}"
fi
if [[ "$1" == "-v" ]]; then
echo -e "${cyan}Version:\t\t"${white}$version"${reset}"
fi