diff options
| author | Manuel Traut <manut@mecka.net> | 2011-07-18 14:00:12 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@mecka.net> | 2011-07-18 14:00:12 +0200 |
| commit | ed006a8eb44831189e152826c692330d0a0cfe3b (patch) | |
| tree | 66996c44c68a8787e4a35a85aea683975f307767 /beagle/debian-rfs/lib/init/swap-functions.sh | |
| parent | 4493e8f707e62b9867d9cfd40205115140e7c993 (diff) | |
delete beagle-dir
Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'beagle/debian-rfs/lib/init/swap-functions.sh')
| -rw-r--r-- | beagle/debian-rfs/lib/init/swap-functions.sh | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/beagle/debian-rfs/lib/init/swap-functions.sh b/beagle/debian-rfs/lib/init/swap-functions.sh deleted file mode 100644 index 48a2326..0000000 --- a/beagle/debian-rfs/lib/init/swap-functions.sh +++ /dev/null @@ -1,28 +0,0 @@ -# -# Functions that assist in turning on swap. -# - -# $1 is a string used to log the type of swap expected to be activated -swaponagain() { - # - # Execute swapon command again to pick up any swap partitions - # that have shown up since the last swapon. - # - # Ignore 255 status due to swap already being enabled - # - if [ "$NOSWAP" = yes ] - then - [ "$VERBOSE" = no ] || log_warning_msg "Not activating swap as requested via bootoption noswap." - else - if [ "$VERBOSE" = no ] - then - log_action_begin_msg "Activating $1 swap" - swapon -a -e 2>/dev/null || : # Stifle "Device or resource busy" - log_action_end_msg 0 - else - log_daemon_msg "Will now activate $1 swap" - swapon -a -e -v - log_action_end_msg $? - fi - fi -} |
