You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am very new to this RaspAP and had some difficulty getting it to work with the "Quick Installer" method. After reading some of the other posts on how to fix things, I did get RaspAP to work. I looked a little further to try and identify what could have caused the problem in the first place. There may be as many as 4 errors in 2 lines of code in the "default_configuration" function in the "installers/common.sh" file. To be more precise, the errors are within the "lines" array and the subsequent for loop.
The first element in the "lines" array should have the forward slashes (/) escaped with backslashes (\).
The sed command should be run with sudo or you get a "permission denied" error.
As the text "exit 0" may also appear in the comments in /etc/rc.local, the sed command should only look for a line that only contains "exit 0" by searching for: ^exit 0$.
The sed command is incorrectly replacing "exit 0" with "exit0".
The original and then the corrected lines are as follows:
Just want to give a quick confirmation that it works now as I tried the "Quick Installer" method on a clean installation of Raspbian Stretch (2018-03-13), and the script was able to successfully write to the /etc/rc.local file. Keep up the good work as this is a great project!
I am very new to this RaspAP and had some difficulty getting it to work with the "Quick Installer" method. After reading some of the other posts on how to fix things, I did get RaspAP to work. I looked a little further to try and identify what could have caused the problem in the first place. There may be as many as 4 errors in 2 lines of code in the "default_configuration" function in the "installers/common.sh" file. To be more precise, the errors are within the "lines" array and the subsequent for loop.
^exit 0$
.The original and then the corrected lines are as follows:
'echo 1 > /proc/sys/net/ipv4/ip_forward #RASPAP'
(Original)'echo 1 > \/proc\/sys\/net\/ipv4\/ip_forward #RASPAP'
(Corrected)sed -i "s/exit 0/$line\nexit0/" /etc/rc.local
(Original)sudo sed -i "s/^exit 0$/$line\nexit 0/" /etc/rc.local
(Corrected)On a clean Raspbian installation and making these edits prior to the RaspAP installation allowed RaspAP to install and operate fine.
RPi 3 Model B
Raspbian Stretch (w/Desktop) 2018-03-13
The text was updated successfully, but these errors were encountered: