Swap: fix redirect

Swap should redirect stdout and stderr from swapon to null and not just
stderr.
This commit is contained in:
William Hubbs 2012-02-13 10:12:12 -06:00
parent 79d6f10926
commit a5ad5ba971

View File

@ -17,7 +17,7 @@ start()
for dev in $(fstabinfo -b -t swap); do for dev in $(fstabinfo -b -t swap); do
case "$dev" in case "$dev" in
/dev/loop*) ;; /dev/loop*) ;;
*) swapon $dev 2>/dev/null;; *) swapon $dev >/dev/null;;
esac esac
done done
;; ;;