diff options
author | Roy Marples <roy@marples.name> | 2008-01-11 12:13:46 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-01-11 12:13:46 +0000 |
commit | 3bf49a9bd19d5bbcf6976dd42b4f87f1b173e287 (patch) | |
tree | 8b4d6121f0d4b921566eeec2844c9bf76131de78 /init.d/swap | |
parent | 1f4422c72f968405a0b8bf56d4f9c3b619b1b80d (diff) |
Adopt a more C style for scripts and remove vim settings.
Diffstat (limited to 'init.d/swap')
-rw-r--r-- | init.d/swap | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/init.d/swap b/init.d/swap index f624e376..aefe7170 100644 --- a/init.d/swap +++ b/init.d/swap @@ -2,17 +2,20 @@ # Copyright 2007-2008 Roy Marples # All rights reserved -depend() { +depend() +{ need localmount } -start() { +start() +{ ebegin "Activating swap" swapon -a >/dev/null eend 0 # If swapon has nothing todo it errors, so always return 0 } -stop() { +stop() +{ ebegin "Deactivating swap" swapoff -a >/dev/null eend 0 |