Closed pad0815 closed 1 day ago
Hi @pad0815
Can you check if the /jffs/scripts
directory exists, maybe also list its contents?
Hi, yes, there is a file named "nordvpn-updater.sh"
User@RT-AX92U-FB50:/tmp/home/root# ls /jffs/scripts/ nordvpn-updater.sh
In the content of the file there is a note of the requirement of jp ... is this the problem? And when, which version i need?
Thanks for your help!
No, the problem is that a file named /jffs/scripts/services-start
doesn't exist, which is a bit weird. For example in my case the /jffs/scripts
directory contains the following files:
ddns-start nordvpn-updater.sh service-event services-stop
dnsmasq.postconf post-mount services-start update-notification
You could maybe try to disable and enable again the "Administration -> System -> Enable JFFS custom scripts and configs" in the router's web UI, and see if the file gets created? Remember to click "Apply" after you disable it and then again when you enable it.
If that doesn't work, and the file is still missing, you can also try to create it manually:
echo "#!/bin/bash" > /jffs/scripts/services-start
chmod 755 /jffs/scripts/services-start
and retry the install script, but I'm not 100% certain if this will work if something else is different / missing in the system :S.
Let me know how it goes :).
Okay, the required files do not appear, so i generate it as you describe and the installation was working! :)
`User@RT-AX92U-FB50:/tmp/home/root# echo "#!/bin/bash" > /jffs/scripts/services-start User@RT-AX92U-FB50:/tmp/home/root# ls /jffs/scripts/ nordvpn-updater.sh services-start User@RT-AX92U-FB50:/tmp/home/root# chmod 755 /jffs/scripts/services-start User@RT-AX92U-FB50:/tmp/home/root# sh install.sh Asuswrt-Merlin version: 388.8 JFFS partition: enabled Router architecture: aarch64
Enabled WireGuard NordVPN clients:
[1] wgc3 (at120.nordvpn.com)
Select client instance for recommended server [1-1, e: exit]: 1
'jq' already installed in /tmp/opt/usr/bin
Downloading nordvpn-updater.sh to /jffs/scripts
Schedule setting wgc3 to recommended server every two-hours? [Y/n, c: custom-schedule]: Y
Adding schedule to crontab
Saving schedule in /jffs/scripts/services-start
Last execution output log file: /var/log/nordvpn-updater-wgc3.log
Do you wish to run nordvpn-updater.sh now? [Y/n]: Y
Thu Nov 14 20:36:06 CET 2024: setting wgc3 to at86
Installation completed User@RT-AX92U-FB50:/tmp/home/root#`
Great!!! Thank you very much!
I will test the reconnect in the next time, but it looks good :+1:
Great! :)
There's one thing left to do though. Please check if the script is still scheduled to run every 2 hours after restarting the router - preserving this is the whole point of services-start
file. You can do it by issuing the following command (after restart):
cru l | grep nordvpn
If this command outputs something, then you're all good, but if its output is empty, that means that the schedule was removed during reboot, and that the services-start
file doesn't work as it should.
Hi, I think it is working correctly!? :D
User@RT-AX92U-FB50:/tmp/home/root# cru l | grep nordvpn 00 */2 * * * /bin/sh /jffs/scripts/nordvpn-updater.sh wgc3 > /var/log/nordvpn-updater-wgc3.log 2>&1 #nordvpn-updater-wgc3#
Great!! I am astonished :) it's working very well!
Thank you very much for the script, i am exuberantly happy!!
After some troubles with my Vilfo Router I am searching an alternative and i think, this could be the first proper one.
Hi,
after i run the sh install.sh i get the following message: