I am a beginner when in comes to this, my area has frequent power outages, I want the router to check if my PC is on at every boot, and if it is off, to turn the PC on using Wake on LAN. My understanding is that if I want a script to run at boot, I should put it in the /jffs/scripts/ directory, but this page says:
Is there a way to run a script on boot that is stored in a USB stick?
Edit: I am using an Asus RT-AC66U B1 router
I do not recommend doing frequent writes to this area, as it may prematurely wear out the flash chip. This is a good place to put files that are written once like scripts or kernel modules, or that rarely get written to. Do not put files that get constantly written to (such as high activity logfiles) - store these on a USB disk instead. Replacing a worn out USB flash disk is much cheaper than replacing the whole router if flash sectors get worn out.
Is there a way to run a script on boot that is stored in a USB stick?
Edit: I am using an Asus RT-AC66U B1 router
Last edited: