aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2012-02-13 10:12:12 -0600
committerWilliam Hubbs <williamh@gentoo.org>2012-02-13 10:12:12 -0600
commita5ad5ba9714ce5a2acca7db8fc022410038a5144 (patch)
tree95012a2b5096bd4d976a3f9d46339c313a0d4e67
parent79d6f109262ac936218332730b231a5b5897d612 (diff)
Swap: fix redirect
Swap should redirect stdout and stderr from swapon to null and not just stderr.
-rw-r--r--init.d/swap.in2
1 files changed, 1 insertions, 1 deletions
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
;;