diff options
author | Dirk von Suchodoletz | 2010-08-22 12:30:55 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2010-08-22 12:30:55 +0200 |
commit | 0e9233e5aec11656c41e8d8316d9c410bfcc244a (patch) | |
tree | 9214863a5f53d9a623dca5f9d04eca0fa6be7ea4 /initramfs | |
parent | Allow VMware swapping if ramzswap is active ... (diff) | |
download | core-0e9233e5aec11656c41e8d8316d9c410bfcc244a.tar.gz core-0e9233e5aec11656c41e8d8316d9c410bfcc244a.tar.xz core-0e9233e5aec11656c41e8d8316d9c410bfcc244a.zip |
Add compressed ram stuff to hwautocfg ...
Diffstat (limited to 'initramfs')
-rwxr-xr-x | initramfs/stage3-stuff/bin/hwautocfg | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/initramfs/stage3-stuff/bin/hwautocfg b/initramfs/stage3-stuff/bin/hwautocfg index b21cf776..e90f80ba 100755 --- a/initramfs/stage3-stuff/bin/hwautocfg +++ b/initramfs/stage3-stuff/bin/hwautocfg @@ -277,7 +277,14 @@ case $1 in # disk setup part (detecting general id82,83 and slx id44,45,46, formatting # if required and mounting) disk) - # if disk action is not disabled (see #470) + # try to enable compressed RAM SWAP + if modprobe ${MODPRV} ramzswap && [ -f /usr/bin/rzscontrol ] ; then + mdev -s + rzscontrol /dev/ramzswap0 --init + swapon /dev/ramzswap0 + #hdswap="# disk swap disabled because of enabled compressed ramswap" + fi + # if disk action is not disabled if [ "x${hw_local_disk}" != "xno" ] ; then disk else |