From 9f70ffbd23f23c6523e1a586f5f5c045d67e353b Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 25 Oct 2010 20:50:17 +0200 Subject: [PATCH] util-linux-ng: be more silent on boot Signed-off-by: Stephan Raue --- packages/sysutils/util-linux-ng/init.d/09_swapfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/sysutils/util-linux-ng/init.d/09_swapfile b/packages/sysutils/util-linux-ng/init.d/09_swapfile index e5b711c832..13bf3441fa 100755 --- a/packages/sysutils/util-linux-ng/init.d/09_swapfile +++ b/packages/sysutils/util-linux-ng/init.d/09_swapfile @@ -35,20 +35,20 @@ if [ $INSTALLED_MEMORY -le 500000 -a -f $HOME/.config/swapon ]; then progress "creating swapfile" mkdir -p $HOME/.cache - dd if=/dev/zero of=$HOME/.cache/swapfile bs=1024 count=524288 - mkswap $HOME/.cache/swapfile + dd if=/dev/zero of=$HOME/.cache/swapfile bs=1024 count=524288 2>&1 > /dev/null + mkswap $HOME/.cache/swapfile 2>&1 > /dev/null fi progress "enable swapfile" swapon -p 10000 $HOME/.cache/swapfile [ $INSTALLED_MEMORY -le 260000 ] \ - && sysctl -w vm.swappiness=100 \ - || sysctl -w vm.swappiness=60 + && sysctl -w vm.swappiness=100 2>&1 > /dev/null \ + || sysctl -w vm.swappiness=60 2>&1 > /dev/null else - sysctl -w vm.swappiness=0 + sysctl -w vm.swappiness=0 2>&1 > /dev/null fi