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/inputBtnTest.sh
2022-11-27 10:16:14 +00:00

15 lines
355 B
Bash

if [ "$1" == "inputTest" ]; then
echo "Start Input Test Mode (^C to quit)"
while :
do
if ( !(grep "0" /proc/tc3162/wps_button > null) ); then
echo "WPS Button is Pressed"
elif ( !(grep "0" /proc/tc3162/reset_button > null) ); then
echo "RESET Button is Pressed"
fi
sleep 1
done
else
echo "The only parameter is 'inputTest'"
fi