USEMDADMSTATIC="no"
USEINSMODSTATIC="no"
USE_SUSPEND="yes"
-USE_SUSPEND2="yes"
+USE_TUXONICE="yes"
uselvm="no"
usenfs="no"
# it should be safe to remove scsi_mod from here, but I'm not sure...
echo " [ --with-fbsplash] [--without-fbsplash]"
echo " [--lvmtoolsversion=1|2] [--with-udev] [--without-udev]"
echo " [--with-suspend] [--without-suspend]"
- echo " [--with-suspend2] [--without-suspend2]"
+ echo " [--with-tuxonice] [--without-tuxonice]"
echo " [--without-dmraid]"
echo " <initrd-image> <kernel-version>"
echo ""
--without-suspend)
USE_SUSPEND="no"
;;
- --with-suspend2)
- USE_SUSPEND2="yes"
+ --with-suspend2 | --with-tuxonice)
+ USE_TUXONICE="yes"
;;
- --without-suspend2)
- USE_SUSPEND2="no"
+ --without-suspend2 | --without-tuxonice)
+ USE_TUXONICE="no"
;;
--lvmtoolsversion=|--lvmversion=)
LVMTOOLSVERSION="`echo $1 | awk -F= '{print $2;}'`"
die "/lib/modules/$kernel is not a directory."
fi
-if is_yes "$USE_SUSPEND" && is_yes "$USE_SUSPEND2"; then
- die "Suspend2 shouldn't be used in parallel with mainline suspend!."
+if is_yes "$USE_SUSPEND" && is_yes "$USE_TUXONICE"; then
+ die "Tuxonice shouldn't be used in parallel with mainline suspend!."
fi
if is_yes "$FB_SPLASH"; then
findmodule "$n"
done
-if is_yes "$USE_SUSPEND2"; then
+if is_yes "$USE_TUXONICE"; then
findmodule "-lzf"
fi
echo "resume" >> "$s"
}
-initrd_gen_suspend2() {
+initrd_gen_tuxonice() {
mkdir -p $MNTIMAGE/sys
mkdir -p $MNTIMAGE/proc
cat << 'EOF' >> "$s"
initrd_gen_suspend
fi
-if is_yes "$USE_SUSPEND2"; then
- initrd_gen_suspend2
+if is_yes "$USE_TUXONICE"; then
+ initrd_gen_tuxonice
fi
if [ "$dmraid_devices" ]; then
#PROBSTATICMODULES=yes
## Use suspend to disk?
+## Conflicts with USE_TUXONICE
USE_SUSPEND=no
-## Do install software suspend2 modules?
-USE_SUSPEND2=no
+## Do install software tuxonice modules?
+## Conflicts with USE_SUSPEND
+## Formerly Suspend2
+USE_TUXONICE=no
## Should we use splash image?
# FB_SPLASH=yes