#!/bin/sh
for file in /proc/[1-9]*/status
do
if grep -q VmSwap $file ; then
awk '/VmSwap|Name/{printf $2 " " $3 }END{ print ""}' $file
fi
done
I had an Unbound user specifically ask for the ridiculous large sized swap file sizes. Apparently his router ran out of memory with his setup. It‘s an option in amtm but not the recommended one. Skynet will want to see 2 GB though, the recommended size.You never used 10GB swap. You have 10GB swap file size. It's the same like Windows automatically assigned page file 2-3GB, but you make it custom 16GB just in case
Skynet will want to see 2 GB though, the recommended size.
Remember: We go eay back with our scripts. 512 MB memory? Not in 2014.
Perhaps @Adamm can tell what is looking for 2GB swap in Skynet. The script doesn't use anywhere near 2GB for sure.
So my question is, if the USB drive fails, does skynet prevent the router from coming up in a usable state with a simple power cycle? I know if I just run the CLI command it doesn't start if it can't find the USB drive (even if it is operating fine).Back in the AC68U days, having less then 2gb swap and custom scripts lead to “cannot fork()” errors that crashed dnsmasq and other processes.
Why don't you try it and find out? You may have other addons or settings that might cause a problem. Power off your router, unplug the USB drive and then turn it back on.So my question is, if the USB drive fails, does skynet prevent the router from coming up in a usable state with a simple power cycle? I know if I just run the CLI command it doesn't start if it can't find the USB drive (even if it is operating fine).
I ask because I am soon leaving a router in situ for 10 months unattended.
So my question is, if the USB drive fails, does skynet prevent the router from coming up in a usable state with a simple power cycle? I know if I just run the CLI command it doesn't start if it can't find the USB drive (even if it is operating fine).
I ask because I am soon leaving a router in situ for 10 months unattended.
Fair point, and I will. To be less subtle about it, Skynet is one of the scripts that doesn't depend on entware, but does require a USB drive for a swap. Any script that requires a USB drive should fail gracefully, as @Adamm just confirmed.Why don't you try it and find out?
Users clearly want choice and we offer it to them. The wide successful usage tells a clear picture. These days consumer routers do more than just routing. Live with that fact.
So does Diversion. No ad blocking but Dnsmasq will run as set in the WebUI.Fair point, and I will. To be less subtle about it, Skynet is one of the scripts that doesn't depend on entware, but does require a USB drive for a swap. Any script that requires a USB drive should fail gracefully, as @Adamm just confirmed.
Yes, it does. I noticed it the other day when I had Skynet installed but wouldn't start because it didn't find the USB drive (others did) and eventually timed out. It showed in amtm as installed because the script was in /jffs. I deleted the script from /jffs and then reinstalled from amtm, after which it worked fine.And amtm will just show the ones still present in /jffs. Exactly like I designed it and it will recover when the ones missing will be found. Gracefully and magically.
*Magic* - the essential ingredient in any of @thelonelycoder's scripts.Gracefully and magically.
Bold but justified. Or maybe the jet lag is taking over my brain. Just returned from a job in the Boston area.*Magic* - the essential ingredient in any of @thelonelycoder's scripts.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!