diff options
author | Roy Marples <roy@marples.name> | 2009-04-27 07:51:18 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-04-27 07:51:18 +0000 |
commit | e70a1429564a8fce5036c351b010a47dbb6c28b7 (patch) | |
tree | a1fc0f75a53041771bc9054fdab517ac32b3d79a /init.d/swap.in | |
parent | eaa32c75c9bba7af0ec842d82f56a6862bbc83db (diff) |
Style.
Diffstat (limited to 'init.d/swap.in')
-rw-r--r-- | init.d/swap.in | 8 |
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 |