gpt-2741gnac_root_files/_mtdblock5.img.extracted/squashfs-root/usr/script/qharvestd.sh
2023-11-26 03:26:24 -03:00

40 lines
721 B
Bash
Executable file

#!/bin/sh
ENOTIMPL=252
# Enter commandsets supported by this customization script here
if [ "$1" = "get" -a "$2" = "commandsets" ]; then
echo "gcli/v1"
exit 0
fi
if [ "$1" = "get" -a "$2" = "platform" ]; then
echo "mitraHGUEconet"
exit 0
fi
if [ "$1" = "get" -a "$2" = "ifconfig" ]; then
ifconfig
exit $?
fi
[ "$1" != "tefapp" ] && exit $ENOTIMPL
shift
if [ "$1" = "show" -a "$2" = "wifi_info" ]; then
tefapp show wifi
tefapp show second_wifi
tefapp show wifi_plus
tefapp show second_wifi_plus
exit $?
fi
if [ "$1" = "scan" ]; then
iwpriv ra0 set SiteSurvey=1
sleep 4
iwpriv ra0 maui scaninfo
iwpriv ra0 set SiteSurvey=0
exit $?
fi
exec tefapp "$@"