RetrOrangePi Official Forum
Wifi Enable, Disable, Connect Scripts Bug - Printable Version

+- RetrOrangePi Official Forum (http://retrorangepi.download/forum)
+-- Forum: Latest Release (http://retrorangepi.download/forum/forumdisplay.php?fid=3)
+--- Forum: RetrOrangePi v4.3 (http://retrorangepi.download/forum/forumdisplay.php?fid=41)
+---- Forum: Retrostone2 (http://retrorangepi.download/forum/forumdisplay.php?fid=44)
+---- Thread: Wifi Enable, Disable, Connect Scripts Bug (/showthread.php?tid=3563)



Wifi Enable, Disable, Connect Scripts Bug - megashub - 06-20-2020

I tried to submit a pull request for this on Github, but the entire /home/pi/RetrOrangePi/Wifi directory appears to be missing from all the repos I could find. 

In the ./Enable.sh, ./Disable.sh and ./Connect.sh scripts included in 4.3, the interpreter statements at the top are all typo'd. 

As installed, they read: #!bin/bash -- they should read #!/bin/bash

They run okay because by default they're run from within EmulationStation and so inherit the interpreter of the session that calls them, but run on their own outside of ES from the commandline, they fail. Easy to fix, but wanted to raise the bug for correction.


RE: Wifi Enable, Disable, Connect Scripts Bug - alexkidd - 06-29-2020

i need to add a retrostone branch, so you can make a pull request anyway so i can keep track of it
thanks for the heads up


RE: Wifi Enable, Disable, Connect Scripts Bug - megashub - 06-29-2020

(06-29-2020, 02:13 PM)alexkidd Wrote: i need to add a retrostone branch, so you can make a pull request anyway so i can keep track of it
thanks for the heads up

Should I wait for the RS branch? I was just going to make the changes directly from the website, since I don't routinely manage code via CLI.


RE: Wifi Enable, Disable, Connect Scripts Bug - antoni - 08-03-2020

(06-20-2020, 08:16 PM)megashub Wrote: I tried to submit a pull request for this on Github, but the entire /home/pi/RetrOrangePi/Wifi directory appears to be missing from all the repos I could find. 

In the ./Enable.sh, ./Disable.sh and ./Connect.sh scripts included in 4.3, the interpreter statements at the top are all typo'd. 

As installed, they read: #!bin/bash -- they should read #!/bin/bash

They run okay because by default they're run from within EmulationStation and so inherit the interpreter of the session that calls them, but run on their own outside of ES from the commandline, they fail. Easy to fix, but wanted to raise the bug for correction.


I changed the "Connect.sh" script to connect directly to my network

Code:
#!/bin/bash
#sudo nmtui
SSID="My Wifi Network"
KEY=123MyKey
sudo nmcli d wifi connect "${SSID}" password ${KEY}