busybox: enable swap optionally, disabled by default for testing

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-10-16 02:38:36 +02:00
parent e17dfa53ef
commit 4af9373863

View File

@ -29,7 +29,7 @@
INSTALLED_MEMORY=`cat /proc/meminfo | grep 'MemTotal:' | awk '{print $2}'` INSTALLED_MEMORY=`cat /proc/meminfo | grep 'MemTotal:' | awk '{print $2}'`
if [ $INSTALLED_MEMORY -le 500000 ]; then if [ $INSTALLED_MEMORY -le 500000 -a -f $HOME/.config/swapon]; then
if [ ! -f $HOME/.cache/swapfile ]; then if [ ! -f $HOME/.cache/swapfile ]; then
progress "creating swapfile" progress "creating swapfile"