diff options
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 |