aboutsummaryrefslogtreecommitdiff
path: root/init.d/swap.in
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/swap.in')
-rw-r--r--init.d/swap.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.d/swap.in b/init.d/swap.in
index bad2b13b..34393c94 100644
--- a/init.d/swap.in
+++ b/init.d/swap.in
@@ -1,5 +1,5 @@
#!@PREFIX@/sbin/runscript
-# Copyright 2007-2008 Roy Marples <roy@marples.name>
+# Copyright 2007-2009 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
depend()
@@ -11,7 +11,7 @@ depend()
start()
{
ebegin "Activating swap devices"
- case "${RC_UNAME}" in
+ case "$RC_UNAME" in
NetBSD|OpenBSD) swapctl -A -t noblk >/dev/null;;
*) swapon -a >/dev/null;;
esac
@@ -24,10 +24,10 @@ stop()
# Try to unmount all tmpfs filesystems not in use, else a deadlock may
# occure. As $RC_SVCDIR may also be tmpfs we cd to it to lock it
- cd "${RC_SVCDIR}"
+ cd "$RC_SVCDIR"
umount -a -t tmpfs 2>/dev/null
- case "${RC_UNAME}" in
+ case "$RC_UNAME" in
NetBSD|OpenBSD) swapctl -U -t noblk >/dev/null;;
*) swapoff -a >/dev/null;;
esac