Setting up swap memory
--------------------------------------------------------------------------------
You can set up a swap file like this (example is for 128MByte):
Create the file to use as swap:
dd if=/dev/zero of=/hdd/swap bs=16k count=8192
Now initialise it as a swapfile:
mkswap -v1 /hdd/swap
Edit /var/tuxbox/start_enigma, place this at the start, just below the '#!/bin/sh' line:
if [ -e /hdd/swap ]; then
/sbin/swapon /hdd/swap
fi
Your Dreambox will now use the swap file. Check to see if swap is in use after rebooting your box:
reboot
Or, if you prefer, use the reboot option on the remote control. Wait for the box to respond to telnet again, and ..
cat /proc/swaps
If something similar to this appears, you're good to go:
Filename Type Size Used Priority
/hdd/swap file 131064 388 -1