From a5ad5ba9714ce5a2acca7db8fc022410038a5144 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 13 Feb 2012 10:12:12 -0600 Subject: [PATCH] Swap: fix redirect Swap should redirect stdout and stderr from swapon to null and not just stderr. --- init.d/swap.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.d/swap.in b/init.d/swap.in index bdc5dc71..0b229a1c 100644 --- a/init.d/swap.in +++ b/init.d/swap.in @@ -17,7 +17,7 @@ start() for dev in $(fstabinfo -b -t swap); do case "$dev" in /dev/loop*) ;; - *) swapon $dev 2>/dev/null;; + *) swapon $dev >/dev/null;; esac done ;;