SWAP FILE
If transmission crashes sometimes "without reason", most probably router goes out of memory and this can be fixed by creating a swap partition but it's a little bit to complicated for most users and we will create a swap file instead, 256MB is more than enough:
•
cd /opt
•
dd if=/dev/zero of=swapfile bs=1024 count=262144
•
mkswap swapfile
•
chmod 0600 swapfile
•
swapon swapfile
To enable swap file when router booting, add this lines to
/jffs/scripts/post-mount script
Code:
#!/bin/sh
swapon /opt/swapfile
To unmount add this lines to
/jffs/scripts/services-stop script
Code:
#!/bin/sh
swapoff /opt/swapfile
Code:
chmod a+rx /jffs/scripts/post-mount
chmod a+rx /jffs/scripts/services-stop