Yes, of course, but do you want this result when this script is active ? or not, because now I use temporary the simple script by bring.fringe18 that works if not perfect ... I ve let the other script I call modified pforna script, in the folder but not activated in the web interface.
If this is not relevant, I wrote that i had this single occurence of this "wifi-iface" in this line
But instead you did uci show wireless, like you did in this other post
I can tell since there are no = signs in the file I asked you to cat but there are in the result of the uci show wireless command.
Furthermore, Opal (GL-SFT1200) has two bands
Running the following should have given you more than one result:
I see that in the text you posted in the other thread.
Wifi Toggle Button Settings for 4.3 devices
I'm going to ask you to follow these instructions exactly as I'm going to type them for you. Just copy and paste each line directly in to your ssh terminal. You shouldn't need to do anything else. Do not edit the files!
#!/bin/sh
#download scripts to your /etc/gl-switch.d folder directly from my git
wget -O /etc/gl-switch.d/Wi-Fi_simple.sh https://raw.githubusercontent.com/mertonv/gl.inet_files/main/4.3/etc/gl-switch.d/Wi-Fi_simple.sh
wget -O /etc/gl-switch.d/Wi-Fi_status.sh https://raw.githubusercontent.com/mertonv/gl.inet_files/main/4.3/etc/gl-switch.d/Wi-Fi_status.sh
#change files to executable
chmod 755 /etc/gl-switch.d/Wi-Fi*
#delete bad status file, better to start with an empty one in your first correct run
rm /etc/wifi_default_status
Now you should have both files in your Opal and listed in the "Toggle Button Settings" menu of the router.
You might want to run them manually first. One at a time!
#!/bin/sh
#for fringe's script, to turn the radios off and on
sh /etc/gl-switch.d/Wi-Fi_simple.sh off
sh /etc/gl-switch.d/Wi-Fi_simple.sh on
#for pforma's script, to turn the radios off and on
sh /etc/gl-switch.d/Wi-Fi_status.sh off
sh /etc/gl-switch.d/Wi-Fi_status.sh on
If you don't get any error output in the ssh terminal and you see the radios working correctly, pick the one you like better and apply it on the "Toggle Button Settings" menu of your router.
Finally I discovered that this guest wifi activation, by toggle button scripts, doesn't work to allow internet connections.
And it is finally what I needed but I am sad to see no solution for the moment except to buy another router but from another brand name.
I'm going to make a few suggestions and I hope you don't take this the wrong way.
First; Use Google Translate to help you write your replies. You are obviously not a native english speaker. Your replies are not only very confusing, but you are also coming across as very rude. Seems you have been told that already, several times.
Second; You have to follow the instructions provided exactly as given. The script I provided here works perfectly for my unit, which should be running the same as yours. If you are not following the instructions, you can't expect to get the same result.
With that said. I'm going to provide you with a set of instructions to follow.
Restore your GL-SFT1200 to factory settings
Access your router by SSH terminal and run these lines exactly as I'm writing them for you. This is for the modified pforma script that will handle all ot the networks.
#!/bin/sh
#download scripts to your /etc/gl-switch.d folder directly from my git
wget -O /etc/gl-switch.d/Wi-Fi_status_guest.sh https://raw.githubusercontent.com/mertonv/gl.inet_files/main/4.3/etc/gl-switch.d/Wi-Fi_status_guest.sh
#change files to executable
chmod 755 /etc/gl-switch.d/Wi-Fi*
#delete bad status file, better to start with an empty one in your first correct run
rm /etc/wifi_default_status
Turn the toggle switch ON and go to your Admin panel to set the script. Should be named "Wi-Fi_status_guest". Select "Apply"
Turn all the Wifi Radios you want to be ON next time you use the switch. Once you have it set, you can now turn the switch OFF. That should turn everything OFF and once you switch back ON, should restablish whatever you had before switching OFF
Connect to the guest network now.
Looks like you are manually setting the IP on your phone. Don't do that. That makes is more complicated. Just use DHCP and let it figure it out on it's own.
I allready reseted the router before to test it for the guest 2g wifi
If this simple script doesn't work I doubt another script could work.
#!/bin/sh
action=$1
if [ "$action" = "on" ];then
uci set wireless.guest2g.disabled='0'
uci commit wireless
wifi reload
fi
if [ "$action" = "off" ];then
uci set wireless.guest2g.disabled='1'
uci commit wireless
wifi reload
fi
sleep 5
NB : I am speaking english too much for the current low english used here or there nowadays, perhaps. Only you complained about this, and only one time before.