RT-IPC_camera/bin/vslocal/cgi-bin/wifi_networking.sh

46 lines
621 B
Bash

#!/bin/sh
## $1 AP|STA
export PATH=$PATH:/bin/vs/cgi-bin:/bin/vs
. /bin/vs/cgi-bin/netenv.conf
. /bin/vs/cgi-bin/net_func.sh
##wifi_sta_stop
##wifi_ap_stop
netact=NONE
if [ -z $1 ]
then
netact=TO_STA
else
if [ $1 == "AP" ]
then
netact=TO_AP
elif [ $1 == "STA" ]
then
netact=TO_STA
elif [ $1 == "WPS" ]
then
netact=TO_WPS
elif [ $1 == "SMTCN" ]
then
netact=TO_SMTCN
elif [ $1 == "FATCN" ]
then
netact=TO_FATCN
elif [ $1 == "FIXNET" ]
then
netact=TO_FIXNET
else
netact=$1
fi
fi
net_setaction $netact