1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
ZyXEL_PMG5617GA/target/linux/en75xx/pmg5617ga/base-files-econet-Default/etc/ethInfo.sh
2022-11-27 10:16:14 +00:00

13 lines
384 B
Bash

if [ "$1" == "1" ]; then
cat /proc/tc3162/gsw_link_st | grep Port1
elif [ "$1" == "2" ]; then
cat /proc/tc3162/gsw_link_st | grep Port2
elif [ "$1" == "3" ]; then
cat /proc/tc3162/gsw_link_st | grep Port3
elif [ "$1" == "4" ]; then
cat /proc/tc3162/gsw_link_st | grep Port4
else
echo "EX: /etc/ethInfo.sh [1|2|3|4]"
echo "The number input should be between 1-4 or NOT empty"
fi