Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start on GT-AXE16000 #321

Open
JonahMMay opened this issue Nov 27, 2024 · 11 comments
Open

Unable to start on GT-AXE16000 #321

JonahMMay opened this issue Nov 27, 2024 · 11 comments
Labels
question Further information is requested

Comments

@JonahMMay
Copy link

When I attempt to run the script after following the AsusWRT-Merlin guide, I get the following error: ./cake-autorate.sh: line 34: syntax error: unexpected redirection

@rany2
Copy link
Collaborator

rany2 commented Nov 27, 2024

Did you run with sh instead of bash?

@JonahMMay
Copy link
Author

Yes, I ended up having to use the command /opt/bin/bash cake-autorate.sh despite what the documentation said. I also noticed that the install documentation says that primary.config.sh should be located in /jffs/scripts/cake-autorate but it is actually in /jffs/configs/cake-autorate.

All I believe I have left is to enable Cake which involves rebooting the router. Just waiting for someone in the house to finish a call in about a half hour to do so.

@rany2
Copy link
Collaborator

rany2 commented Nov 27, 2024

The script requires bash so that's expected. The shebang is already set properly so there's no issue there. I also didn't notice anything wrong with the documentation, can you point me to where it says that sh should be used?

I'll need to update the path to config for the documentation though.

@JonahMMay
Copy link
Author

Under "Manual Testing" it says to do

cd /root/cake-autorate     # to the cake-autorate directory
./cake-autorate.sh

but instead, I ended up having to do

cd /jffs/scripts/cake-autorate     # to the cake-autorate directory
/opt/bin/bash cake-autorate.sh

It looks like Manual Testing may just only be written for OpenWRT and not Merlin.

@rany2
Copy link
Collaborator

rany2 commented Nov 27, 2024

It's odd that /usr/bin/env bash ./cake-autorate.sh doesn't work...

@JonahMMay
Copy link
Author

I saw in some forums where someone had a similar error on Merlin but they said running opkg install bash resolved the problem. Running that for me just gives Package bash (5.2.21-1) installed in root is up to date.

Maybe the reboot I'll be able to perform soon will fix the issue. We'll see. Launcher.sh is giving a similar syntax error on line 3 due to the opening parenthesis at the moment.

@rany2
Copy link
Collaborator

rany2 commented Nov 27, 2024

Mhmm, I wonder if Merlin ships with an outdated bash version and it's somehow preferring that in its PATH?

@JonahMMay
Copy link
Author

which bash seems to be pointing to /bin/bash which is symlinked to busybox. /usr/bin/env appears to have a similar busybox symlink. Seems like the only way I can get the manual test to run is by manually specifying /opt/bin/bash in the command or by editing the shebang to use it.

@JonahMMay
Copy link
Author

Looks like my entware installation recommended editing the PATH value which seems to be resolving the issue. Not sure why it did not do it during the install

Info: Congratulations!
Info: If there are no errors above then Entware was successfully initialized.
Info: Add /opt/bin & /opt/sbin to $PATH variable
Info: Add "/opt/etc/init.d/rc.unslung start" to startup script for Entware services to start
Info: Use ssh server from Entware for better compatibility.
Info: Found a Bug? Please report at https://github.com/Entware/Entware/issues

Just working on making it persistent then I'll be attempting that reboot.

@rany2
Copy link
Collaborator

rany2 commented Nov 27, 2024

which bash seems to be pointing to /bin/bash which is symlinked to busybox

I sure hope that's not something the official busybox distribution is doing....because that's such a bad idea.

@lynxthecat lynxthecat added the question Further information is requested label Jan 7, 2025
@lynxthecat
Copy link
Owner

Perhaps we can close this now @JonahMMay?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants