What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

GT-BE98 - Is there any known way to run custom scripts on startup without Merlin-GNUton?

WispTheHusky

New Around Here
Hey there. Looking for a bit of advice on custom scripting on my GT-BE98, please.

I'm wanting to run a custom shell script on my GT-BE98 during boot. The file itself is saving fine, totally accessible after reboot, etc. But my current attempts to run anything on boot have been in vain. I've tried:
- Using services-start and init-start:
Bash:
cat << 'EOF' > /jffs/scripts/services-start
#!/bin/sh
cru a porkbun_ddns "*/5 * * * * /jffs/ddns_porkbun.sh"
EOF

chmod +x /jffs/scripts/services-start
- Using a Cron job to re-arm the script using a reboot hook: cru a porkbun_ddns_boot "@reboot cru a porkbun_ddns \"*/5 * * * * /jffs/ddns_porkbun.sh\""

All Cron jobs are wiped on reboot, and there doesn't appear to be a way to make them persistant. I'm aware Asus has been locking out their routers more and more... But considering the files still save to the device and persist after a reboot, makes me think there is surely a way to access them? What would the point be of allowing us to create persistant .sh files if we're no longer able to use them? I was wondering if there was any known way to execute these scripts on start or reboot?

I'm aware that ASUSWRT-Merlin isn't available for my router, but the GNUton version is. The problem is, I dislike the GNUton-provided UI, and can see numerous issues on the GitHub for the GT-BE98 build that'll impact me quite severely. I was hoping there might be a way to allow this functionality while remaining stock? Any advice would be appreicated.

Many thanks!
 
Hooks like services-start, init-start, etc. are Merlin enhancements that don't exist in stock firmware. You might be able to use this:

A little bit of work, but I can confirm that it works. I used it on GT-AXE16000 AiMesh node in order to fix 6 GHz SSID (didn't match primary SSID when using single SSID for all three (3) bands on primary router).
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top