mirror of
https://github.com/moshix/mvs.git
synced 2026-04-26 12:27:01 +00:00
small enhancements
This commit is contained in:
@@ -80,7 +80,7 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
if [[ "$1" == "-e" ]]; then
|
if [[ "$1" == "-e" ]] || [[ "$1" == "-v" ]]; then
|
||||||
if [[ -z "$2" ]]; then
|
if [[ -z "$2" ]]; then
|
||||||
delay=1.4
|
delay=1.4
|
||||||
ext=`timeout $delay curl ifconfig.me 2>/dev/null`
|
ext=`timeout $delay curl ifconfig.me 2>/dev/null`
|
||||||
@@ -122,11 +122,6 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [[ "$1" == "-v" ]]; then
|
|
||||||
echo -e "${white}Version "$version"${reset}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
os_type # call os type determination
|
|
||||||
if [[ "$ostype" == "Linux" ]]; then
|
if [[ "$ostype" == "Linux" ]]; then
|
||||||
routenic=`route | grep '^default' | grep -o '[^ ]*$'` # for Linux
|
routenic=`route | grep '^default' | grep -o '[^ ]*$'` # for Linux
|
||||||
echo -e "${blue}NIC to Internet: \t${white}$routenic${reset}"
|
echo -e "${blue}NIC to Internet: \t${white}$routenic${reset}"
|
||||||
@@ -143,3 +138,7 @@ if [[ -z "$dnscheck" ]]; then
|
|||||||
else
|
else
|
||||||
echo -e "${blue}DNS config: \t\t${white}OK ${reset}"
|
echo -e "${blue}DNS config: \t\t${white}OK ${reset}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$1" == "-v" ]]; then
|
||||||
|
echo -e "${cyan}Version:\t\t"${white}$version"${reset}"
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user