Swap: fix redirect
Swap should redirect stdout and stderr from swapon to null and not just stderr.
This commit is contained in:
parent
79d6f10926
commit
a5ad5ba971
@ -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
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user