Can anyone tell me how to create a user script? I tried to follow the wiki here (https://github.com/RMerl/asuswrt-merlin.ng/wiki/User-scripts) but without luck...
My goal is to have the swap file turn on anytime I reboot the router. I found instructions here:
https://mydevtutorials.wordpress.com/2014/01/10/how-to-activate-swap-on-asus-rt-ac68u-router/
But when I try these commands in Putty, nothing works. I got as far turning the swap on --- but I can't figure out the correct set of commands to get the " /jffs/scripts/post-mount " to automatically turn swap on.
Can anyone help me? thank you!!
My goal is to have the swap file turn on anytime I reboot the router. I found instructions here:
https://mydevtutorials.wordpress.com/2014/01/10/how-to-activate-swap-on-asus-rt-ac68u-router/
If you reboot your router, the swap will be inactive until you swapon again. To do this automatically you have to create the file /jffs/scripts/post-mount, or edit it if exists and add the line:
1
2
#!/bin/sh
swapon /tmp/mnt/sda1/myswap.swp
Now every time the router reboots, it will turn on swap.
But when I try these commands in Putty, nothing works. I got as far turning the swap on --- but I can't figure out the correct set of commands to get the " /jffs/scripts/post-mount " to automatically turn swap on.
Can anyone help me? thank you!!