View Single Post
Posts: 152 | Thanked: 6 times | Joined on Dec 2006
#23
I wrote a tiny script /etc/init.d/swappart to have it activate swap partition at startup, all you have to do is change the string 'SWAPX=' to your swap partition.
and run the command 'ln -s ../init.d/swappart S19swappart' in your /etc/rc2.d directory. hope that help, BTW, the legal jumble is here. I assume no liability or responsibility in anyway by posting this POS, and use it at your own risk.

Code:
#!/bin/sh
# workaround an issue with mounting swap partition at startup

SWAPX='/dev/mmcblk0p3'

case "$1" in
 start)
   swapon $SWAPX
 ;;
 stop)
   swapoff $SWAPX
 ;;
 restart
   swapoff $SWAPX
   swapon $SWAPX
 ;;
 reload|force-reload)
   echo "$0: not implemented"
 ;;
 *)
 ;;
esac