From 4af93738637d4bf303bb2da74f19823761ec0d9d Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 16 Oct 2010 02:38:36 +0200 Subject: [PATCH] busybox: enable swap optionally, disabled by default for testing Signed-off-by: Stephan Raue --- packages/sysutils/busybox/init.d/09_swapfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sysutils/busybox/init.d/09_swapfile b/packages/sysutils/busybox/init.d/09_swapfile index e004459209..4c2c0b113d 100755 --- a/packages/sysutils/busybox/init.d/09_swapfile +++ b/packages/sysutils/busybox/init.d/09_swapfile @@ -29,7 +29,7 @@ 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 progress "creating swapfile"