OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: Snappy on January 03, 2007, 03:27:05 pm

Title: Automounting Swap On Sd
Post by: Snappy on January 03, 2007, 03:27:05 pm
Hi all,

Spare me if I'm the last to know this ... but this is how I got the swap file auto mounted in Cacko 1.23 full on my sd card.

I added the following in rc.local

# turn on swap
SWAPFILE=.swapfile    
SWAP=/mnt/card/.swapfile
 
  if [ -f $SWAP ] && [ "`grep $SWAPFILE /proc/swaps`" = "" ]; then
     swapon $SWAP
  fi

The above code was from http://www.daniel-hertrich.de/zaurus/zps_cacko/ (http://www.daniel-hertrich.de/zaurus/zps_cacko/)

I also added the code into /etc/sdcard/sd_mem_ctrl so that the swap file is automounted and auto dismounted when the sdcard is inserted or ejected.

No more manually activating it via the mem applet after reset.