RetrOrangePi Official Forum

Full Version: Wifi Enable, Disable, Connect Scripts Bug
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 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
(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.
(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}