Hello Sir,
But I forgot admin username & Password.So I created new user when I am executing this steps, It shows error "Action result
Please authenticate first"
I executed this commands,
lanIfName=$(uci get network.lan.ifname)
wanIfName=$(uci get network.wan.ifname)
echo old config : lan: $lanIfName wan: $wanIfName
echo ---------------
uci show network
if [ "$lanIfName" != "" ] && [ "$wanIfName" != "" ]
then
echo
echo switching interfaces
uci set network.lan.ifname="$wanIfName"
uci set network.wan.ifname="$lanIfName"
echo new config:
echo ---------------
uci show network
echo
echo 'if ok, please send these commands "uci commit network;reboot"'
fi