aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/swap-ifexists.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-11 14:12:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-11 14:12:35 +0000
commitfd34e44fce2b0f2be1a8307fd5c5967a3d1c2527 (patch)
tree5c5df48c87d0797b2ea3374c7b495bd4b31ee1bf /main/openrc/swap-ifexists.patch
parent7713e3748dd5ae355e155f2ac6fe990b80493223 (diff)
downloadaports-fd34e44fce2b0f2be1a8307fd5c5967a3d1c2527.tar.bz2
aports-fd34e44fce2b0f2be1a8307fd5c5967a3d1c2527.tar.xz
main/openrc: busybox swapon has no -e option
we remove it for now
Diffstat (limited to 'main/openrc/swap-ifexists.patch')
-rw-r--r--main/openrc/swap-ifexists.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/openrc/swap-ifexists.patch b/main/openrc/swap-ifexists.patch
new file mode 100644
index 0000000000..65ab2978c8
--- /dev/null
+++ b/main/openrc/swap-ifexists.patch
@@ -0,0 +1,13 @@
+diff --git a/init.d/swap.in b/init.d/swap.in
+index 9e8ddbd..2bf5614 100644
+--- a/init.d/swap.in
++++ b/init.d/swap.in
+@@ -12,7 +12,7 @@ start()
+ {
+ ebegin "Activating swap devices"
+ case "$RC_UNAME" in
+- Linux) swapon -a -e >/dev/null;;
++ Linux) swapon -a >/dev/null;;
+ NetBSD|OpenBSD) swapctl -A -t noblk >/dev/null;;
+ *) swapon -a >/dev/null;;
+ esac