I have this in /rc/bin/cpurc if (test -e /dev/sdC0/swap) swap /dev/sdC0/swap But beware, I've seen complaints about `not enough memory' in those weird circumstances when swap was used a lot in our system. It's much better to add more memory.