aboutsummaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'init.d')
-rw-r--r--init.d/swap.in10
1 files changed, 1 insertions, 9 deletions
diff --git a/init.d/swap.in b/init.d/swap.in
index 0b229a1c..fa08b4d0 100644
--- a/init.d/swap.in
+++ b/init.d/swap.in
@@ -12,15 +12,7 @@ start()
{
ebegin "Activating swap devices"
case "$RC_UNAME" in
- Linux)
- local dev
- for dev in $(fstabinfo -b -t swap); do
- case "$dev" in
- /dev/loop*) ;;
- *) swapon $dev >/dev/null;;
- esac
- done
- ;;
+ Linux) swapon -a -e >/dev/null;;
NetBSD|OpenBSD) swapctl -A -t noblk >/dev/null;;
*) swapon -a >/dev/null;;
esac