+ umask 077
+ USING_ZSH=
+ USING_BASH=
+ NEED_POSIX=
+ setopt SH_WORD_SPLIT
+ true
+ unsetopt FUNCTION_ARGZERO
+ true
+ shopt
+ [ -n  ]
+ [ -z  ]
+ NEED_POSIX=1
+ [ -z 1 ]
+ unset TRIED_DASH
+ SWSUSP_D=/etc/hibernate
+ SCRIPTLET_PATH=/etc/hibernate/scriptlets.d /usr/local/share/hibernate/scriptlets.d /usr/share/hibernate/scriptlets.d
+ DEFAULT_CONFIG_FILE=/etc/hibernate/hibernate.conf
+ EXE=hibernate
+ VERSION=1.98.1
+ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/local/sbin
+ export PATH
+ SUSPEND_BITS=
+ RESUME_BITS=
+ TERMINATION_HANDLERS=
+ CONFIG_OPTION_HANDLERS=
+ CMDLINE_OPTION_HANDLERS=
+ EXTRA_SHORT_OPTS=
+ EXTRA_LONG_OPTS=
+ CMDLINE_OPTIONS_HELP=
+ conffiles_read=
+ VERBOSITY=0
+ LOG_VERBOSITY=1
+ LOGPIPE=cat
+ ERROR_TEXT=
+ EnsureHavePrerequisites
+ local i
+ command -v awk
+ command -v grep
+ command -v sort
+ command -v getopt
+ command -v basename
+ command -v chvt
+ command -v printf
+ command -v mktemp
+ return 0
+ PreliminaryGetopt
+ local opt
+ getopt -q -o hv:F: -l help,verbosity:,config-file:,version --
+ set -- --
+ [ -n -- ]
+ opt=--
+ shift
+ return 0
+ CheckImplicitAlternateConfig /usr/local/sbin/hibernate
+ [ -n  ]
+ local self
+ self=hibernate
+ CONFIG_FILE=/etc/hibernate/hibernate.conf
+ return 0
+ [ -n  ]
+ DISABLE_HELP=1
+ EnsureHaveRoot
+ id -u
+ [ x0 != x0 ]
+ return 0
+ LoadScriptlets
+ local prev_pwd
+ local scriptlet
+ local scriptlet_name
+ local scriptlet_dir
+ local prev_path
+ CURRENT_SOURCED_SCRIPTLET=
+ [ -d /etc/hibernate/scriptlets.d ]
+ continue
+ [ -d /usr/local/share/hibernate/scriptlets.d ]
+ /bin/ls -1 /usr/local/share/hibernate/scriptlets.d
+ [ -z acpi_sleep
backlight
bootsplash
clock
devices
diskcache
fbsplash
filesystems
gaim
galeon
gfx_brightness
grub
hardware_tweaks
lilo
lock
lockfile
misclaunch
modules
modules_gentoo
network
networkmanager
newkernel
pause_audio
pcmcia
programs
remount_xfsboot
services
suspend2
swsusp2_15
sylpheed_claws
sysfs_power_state
ususpend
vbetool
videodump
xhacks
xstatus ]
+ scriptlet_name=acpi_sleep
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_acpi_sleep}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_acpi_sleep=/usr/local/share/hibernate/scriptlets.d/acpi_sleep
+ HAVE_SOURCED_SCRIPTLET_acpi_sleep=/usr/local/share/hibernate/scriptlets.d/acpi_sleep
+ CURRENT_SOURCED_SCRIPTLET=acpi_sleep
+ . /usr/local/share/hibernate/scriptlets.d/acpi_sleep
+ AddConfigHandler ACPISleepConfigEnabler
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler
+ AddOptionHandler ACPISleepOptionHandler
+ CMDLINE_OPTION_HANDLERS= ACPISleepOptionHandler
+ AddConfigHelp UseACPISleep <state> Enables the use of /proc/acpi/sleep for suspending the machine. Be aware that this method is deprecated in favour of using /sys/power/state (with the sysfs_power_state scriptlet). This requires a kernel with ACPI support built in. <state> should generally be 3 (for suspend-to-RAM), or 4 (for suspend-to-disk). Note: You should not use this if you want to use Software Suspend 2.
+ return 0
+ AddShortOption n
+ EXTRA_SHORT_OPTS=n
+ AddLongOption no-suspend
+ EXTRA_LONG_OPTS=,no-suspend
+ ACPI_SLEEP_FILE=/proc/acpi/sleep
+ scriptlet_name=backlight
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_backlight}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_backlight=/usr/local/share/hibernate/scriptlets.d/backlight
+ HAVE_SOURCED_SCRIPTLET_backlight=/usr/local/share/hibernate/scriptlets.d/backlight
+ CURRENT_SOURCED_SCRIPTLET=backlight
+ . /usr/local/share/hibernate/scriptlets.d/backlight
+ AddConfigHandler BackLightOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions
+ AddConfigHelp BackLight <boolean> This will enable fancy backlight fading using the xbacklight program.
+ return 0
+ scriptlet_name=bootsplash
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_bootsplash}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_bootsplash=/usr/local/share/hibernate/scriptlets.d/bootsplash
+ HAVE_SOURCED_SCRIPTLET_bootsplash=/usr/local/share/hibernate/scriptlets.d/bootsplash
+ CURRENT_SOURCED_SCRIPTLET=bootsplash
+ . /usr/local/share/hibernate/scriptlets.d/bootsplash
+ AddConfigHandler SplashOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions
+ AddConfigHelp Bootsplash <boolean> Showing script progress on an bootsplash enabled kernel. This will automatically enable SwitchToTextMode too.
+ return 0
+ AddConfigHelp BootsplashConfig <configfile> Bootsplash config file (default is /etc/bootsplash/default/config/bootsplash-1024x768.cfg)
+ return 0
+ SPLASH_CONFIG_FILE=/etc/bootsplash/default/config/bootsplash-1024x768.cfg
+ scriptlet_name=clock
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_clock}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_clock=/usr/local/share/hibernate/scriptlets.d/clock
+ HAVE_SOURCED_SCRIPTLET_clock=/usr/local/share/hibernate/scriptlets.d/clock
+ CURRENT_SOURCED_SCRIPTLET=clock
+ . /usr/local/share/hibernate/scriptlets.d/clock
+ AddConfigHandler ClockOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions
+ AddConfigHelp SaveClock restore-only|<boolean> Set this to yes to save the system clock before suspending and restore the system clock after resuming. If set to restore-only, the clock will not be saved, only restored - this means suspending is faster, but if your hardware clock drifts significantly, your system clock will drift as well.
+ return 0
+ scriptlet_name=devices
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_devices}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_devices=/usr/local/share/hibernate/scriptlets.d/devices
+ HAVE_SOURCED_SCRIPTLET_devices=/usr/local/share/hibernate/scriptlets.d/devices
+ CURRENT_SOURCED_SCRIPTLET=devices
+ . /usr/local/share/hibernate/scriptlets.d/devices
+ AddConfigHandler DevicesOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions
+ AddConfigHelp IncompatibleDevices <device name> [...] If there are any processes accessing these devices, then suspending is aborted. If the --kill option is passed, the offending processes are terminated and the suspend continues. For example programs accessing the sound card (/dev/dsp*) or tuner cards (/dev/video*) would deny the respective modules from being unloaded.
+ return 0
+ scriptlet_name=diskcache
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_diskcache}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_diskcache=/usr/local/share/hibernate/scriptlets.d/diskcache
+ HAVE_SOURCED_SCRIPTLET_diskcache=/usr/local/share/hibernate/scriptlets.d/diskcache
+ CURRENT_SOURCED_SCRIPTLET=diskcache
+ . /usr/local/share/hibernate/scriptlets.d/diskcache
+ AddConfigHandler DiskCacheOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions
+ AddConfigHelp DisableWriteCacheOn <drive> [...] On some hardware the power is cut off before the disk has flushed its own hardware cache. List the devices that contain swap partitions (eg, /dev/hda) to disable the write cache before suspending.
+ return 0
+ scriptlet_name=fbsplash
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_fbsplash}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_fbsplash=/usr/local/share/hibernate/scriptlets.d/fbsplash
+ HAVE_SOURCED_SCRIPTLET_fbsplash=/usr/local/share/hibernate/scriptlets.d/fbsplash
+ CURRENT_SOURCED_SCRIPTLET=fbsplash
+ . /usr/local/share/hibernate/scriptlets.d/fbsplash
+ AddConfigHandler FBSplashOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions
+ AddConfigHelp FBSplash <boolean> Showing script progress using fbsplash. No kernel patches are required, but you will need the fbsplash splashutils package installed (distinct from the bootsplash splashutils package). This will automatically enable SwitchToTextMode too.
+ return 0
+ AddConfigHelp FBSplashTheme <themename> FBSplash theme name (default is taken from /proc/cmdline)
+ return 0
+ FBSPLASH_THEME=
+ FBSPLASH_FIFO=/lib/splash/cache/.splash
+ scriptlet_name=filesystems
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_filesystems}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_filesystems=/usr/local/share/hibernate/scriptlets.d/filesystems
+ HAVE_SOURCED_SCRIPTLET_filesystems=/usr/local/share/hibernate/scriptlets.d/filesystems
+ CURRENT_SOURCED_SCRIPTLET=filesystems
+ . /usr/local/share/hibernate/scriptlets.d/filesystems
+ AddConfigHandler FilesystemsOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions
+ AddConfigHelp Unmount <mount point or device> [...] If you have network shares or external devices that should be unmounted before suspending, list them here.
+ return 0
+ AddConfigHelp Mount <mount point or device> [...] If you have network shares or external devices that should be mounted after resuming, list them here.
+ return 0
+ AddConfigHelp UnmountFSTypes <filesystem type> [...] Unmounts any filesystems of the given types. This is most useful for network filesystems such as smbfs and nfs.
+ return 0
+ AddConfigHelp UnmountGraceTime <seconds> Time between sending SIGTERM to processes and SIGKILL to allow them to cleanup gracefully.. The default is 1 second.
+ return 0
+ FS_UNMOUNT_GRACE=1
+ scriptlet_name=gaim
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_gaim}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_gaim=/usr/local/share/hibernate/scriptlets.d/gaim
+ HAVE_SOURCED_SCRIPTLET_gaim=/usr/local/share/hibernate/scriptlets.d/gaim
+ CURRENT_SOURCED_SCRIPTLET=gaim
+ . /usr/local/share/hibernate/scriptlets.d/gaim
+ command -v gaim-remote
+ gaim_remote=
+ AddConfigHandler GaimOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions
+ AddConfigHelp LogoutGaim <boolean> Changes all locally running Gaim's status to offline before suspending, and (optionally) change it back to the original status after resuming.
+ return 0
+ AddConfigHelp GaimRestoreStatus <boolean> Changes back Gaim's status to the original status after resuming.
+ return 0
+ AddConfigHelp GaimLogoutMessage <string> Status message to set when logging out Gaim.
+ return 0
+ AddConfigHelp GaimLoginMessage <string> Status message to set when logging in Gaim.
+ return 0
+ scriptlet_name=galeon
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_galeon}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_galeon=/usr/local/share/hibernate/scriptlets.d/galeon
+ HAVE_SOURCED_SCRIPTLET_galeon=/usr/local/share/hibernate/scriptlets.d/galeon
+ CURRENT_SOURCED_SCRIPTLET=galeon
+ . /usr/local/share/hibernate/scriptlets.d/galeon
+ command -v gconftool
+ gconftool=/usr/bin/gconftool
+ galeon_gconf_offline_key=/apps/galeon/Browsing/General/offline
+ AddConfigHandler GaleonOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions
+ AddConfigHelp GaleonOffline <boolean> Changes all locally running Galeon's status to offline before suspending, and (optionally) change it back to the original state after resuming.
+ return 0
+ AddConfigHelp GaleonRestoreStatus <boolean> Change status of Galeon back to the original state after resuming.
+ return 0
+ scriptlet_name=gfx_brightness
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_gfx_brightness}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_gfx_brightness=/usr/local/share/hibernate/scriptlets.d/gfx_brightness
+ HAVE_SOURCED_SCRIPTLET_gfx_brightness=/usr/local/share/hibernate/scriptlets.d/gfx_brightness
+ CURRENT_SOURCED_SCRIPTLET=gfx_brightness
+ . /usr/local/share/hibernate/scriptlets.d/gfx_brightness
+ AddConfigHandler GFXBrightnessOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions
+ AddConfigHelp RestoreGFXBrightness <boolean> This will save and restore LCD brightness(GFX cards) using ACPI.
+ return 0
+ gfx_brightness_acpifile=/proc/acpi/video/GFX0/LCD/brightness
+ scriptlet_name=grub
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_grub}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_grub=/usr/local/share/hibernate/scriptlets.d/grub
+ HAVE_SOURCED_SCRIPTLET_grub=/usr/local/share/hibernate/scriptlets.d/grub
+ CURRENT_SOURCED_SCRIPTLET=grub
+ . /usr/local/share/hibernate/scriptlets.d/grub
+ AddConfigHandler GrubConfigOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions
+ AddConfigHelp ChangeGrubMenu <boolean> Change grub's config file to show system is suspended before suspending and restore after resume.
+ return 0
+ AddConfigHelp GrubMenuFile <filename> Filename of grub's config file. Default is /boot/grub/grub.conf.
+ return 0
+ AddConfigHelp AlternateGrubMenuFile <filename> Filename of the grub config file to put in place when the machine is suspended. If this is not specified, the script will add a small header to the existing grub menu.
+ return 0
+ AddConfigHelp BackupGrubMenuFile <filename> Where to keep a backup of your real grub menu file. Defaults to the current grub menu file with '.hibernate.bak' appended.
+ return 0
+ AddOptionHandler GrubCmdlineOptions
+ CMDLINE_OPTION_HANDLERS= ACPISleepOptionHandler GrubCmdlineOptions
+ AddShortOption g
+ EXTRA_SHORT_OPTS=ng
+ AddLongOption restore-grub
+ EXTRA_LONG_OPTS=,no-suspend,restore-grub
+ AddOptionHelp -g, --restore-grub Restores the grub menu to normal (use if a resume was not completed sucessfully) and exits the script. A suspend is not performed.
+ [ -n 1 ]
+ return
+ GRUB_MENU_FILE=/boot/grub/grub.conf
+ GRUB_BEGIN_SENTINEL=### BEGIN HIBERNATE SENTINEL
+ GRUB_END_SENTINEL=### END HIBERNATE SENTINEL
+ scriptlet_name=hardware_tweaks
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_hardware_tweaks}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_hardware_tweaks=/usr/local/share/hibernate/scriptlets.d/hardware_tweaks
+ HAVE_SOURCED_SCRIPTLET_hardware_tweaks=/usr/local/share/hibernate/scriptlets.d/hardware_tweaks
+ CURRENT_SOURCED_SCRIPTLET=hardware_tweaks
+ . /usr/local/share/hibernate/scriptlets.d/hardware_tweaks
+ AddConfigHandler HardwareTweaksOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions
+ AddConfigHelp IbmAcpi <boolean> Use the ibm_acpi kernel module to signal suspend progress.
+ return 0
+ IBM_ACPI_PROC=/proc/acpi/ibm
+ IBM_ACPI_LED=/proc/acpi/ibm/led
+ IBM_ACPI_BEEP=/proc/acpi/ibm/beep
+ AddConfigHelp RadeonTool <boolean> Use radeontool to turn off LCD backlight.
+ return 0
+ AddConfigHelp Runi915resolution <boolean> Set to run 915resolution before switching back to X.
+ return 0
+ AddConfigHelp FullSpeedCPU <boolean> Sets the CPU to full speed whilst suspending.
+ return 0
+ AddConfigHelp AcpiVideoS3Bios <boolean> Sets s3_bios mode, replaces acpi_sleep=s3_bios kernel parameter.
+ return 0
+ AddConfigHelp AcpiVideoS3Mode <boolean> Sets s3_mode mode, replaces acpi_sleep=s3_mode kernel parameter.
+ return 0
+ ACPIVIDEO_FLAGS=0
+ scriptlet_name=lilo
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_lilo}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_lilo=/usr/local/share/hibernate/scriptlets.d/lilo
+ HAVE_SOURCED_SCRIPTLET_lilo=/usr/local/share/hibernate/scriptlets.d/lilo
+ CURRENT_SOURCED_SCRIPTLET=lilo
+ . /usr/local/share/hibernate/scriptlets.d/lilo
+ AddConfigHandler LILOConfigOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions
+ AddConfigHelp EnsureLILOResumes <boolean> Makes sure that LILO boots the correct kernel image when rebooting to resume. This is useful when you boot into a non-default kernel or want to avoid LILO's menu delay when resuming.
+ return 0
+ scriptlet_name=lock
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_lock}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_lock=/usr/local/share/hibernate/scriptlets.d/lock
+ HAVE_SOURCED_SCRIPTLET_lock=/usr/local/share/hibernate/scriptlets.d/lock
+ CURRENT_SOURCED_SCRIPTLET=lock
+ . /usr/local/share/hibernate/scriptlets.d/lock
+ AddConfigHandler LockOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions
+ AddConfigHelp LockKDE <boolean> Lock all local KDE sessions before suspending.
+ return 0
+ AddConfigHelp LockXScreenSaver <boolean> Lock all local X11 sessions with xscreensaver running before suspending.
+ return 0
+ AddConfigHelp LockGnomeScreenSaver <boolean> Lock all local X11 sessions with gnome-screensaver running before suspending.
+ return 0
+ AddConfigHelp LockXLock <boolean> Lock active X11 session using xlock.
+ return 0
+ AddConfigHelp LockXAutoLock <boolean> Lock all local X11 sessions running xautolock.
+ return 0
+ AddConfigHelp LockConsoleAs <username> Locks the entire system after resuming, requiring you to enter either <username>'s or root's password to unlock it. (Requires vlock).
+ return 0
+ AddConfigHelp LockXtrLock <boolean> Lock active X11 session using xtrlock.
+ return 0
+ AddOptionHandler LockCmdlineOptions
+ CMDLINE_OPTION_HANDLERS= ACPISleepOptionHandler GrubCmdlineOptions LockCmdlineOptions
+ AddLongOption lock-console-as:
+ EXTRA_LONG_OPTS=,no-suspend,restore-grub,lock-console-as:
+ AddOptionHelp --lock-console-as <username> Uses vlock to lock the entire system after resuming, requirng you to enter the password for the given user to unlock it. This overrides any username given in the configuration file. (Requires vlock)
+ [ -n 1 ]
+ return
+ scriptlet_name=lockfile
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_lockfile}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_lockfile=/usr/local/share/hibernate/scriptlets.d/lockfile
+ HAVE_SOURCED_SCRIPTLET_lockfile=/usr/local/share/hibernate/scriptlets.d/lockfile
+ CURRENT_SOURCED_SCRIPTLET=lockfile
+ . /usr/local/share/hibernate/scriptlets.d/lockfile
+ LOCKFILE=/var/run/hibernate-script.pid
+ LAST_RESUME_FILE=/var/run/hibernate-last-resume
+ LAST_RESUME_WAIT=3
+ LOCKFILE_IN_USE=
+ AddSuspendHook 01 LockFileGet
+ SUSPEND_BITS=01LockFileGet\n
+ AddSuspendHook 01 CheckLastResume
+ SUSPEND_BITS=01CheckLastResume\n01LockFileGet\n
+ AddResumeHook 01 LockFilePut
+ RESUME_BITS=01LockFilePut\n
+ AddResumeHook 01 NoteLastResume
+ RESUME_BITS=01NoteLastResume\n01LockFilePut\n
+ AddSuspendHook 01 CheckRunlevel
+ SUSPEND_BITS=01CheckRunlevel\n01CheckLastResume\n01LockFileGet\n
+ AddSuspendHook 98 CheckRunlevel
+ SUSPEND_BITS=98CheckRunlevel\n01CheckRunlevel\n01CheckLastResume\n01LockFileGet\n
+ scriptlet_name=misclaunch
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_misclaunch}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_misclaunch=/usr/local/share/hibernate/scriptlets.d/misclaunch
+ HAVE_SOURCED_SCRIPTLET_misclaunch=/usr/local/share/hibernate/scriptlets.d/misclaunch
+ CURRENT_SOURCED_SCRIPTLET=misclaunch
+ . /usr/local/share/hibernate/scriptlets.d/misclaunch
+ AddConfigHandler MiscLaunchOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions MiscLaunchOptions
+ AddConfigHelp OnSuspend NN <program to execute> [parameters for program] Executes a given program before suspending. NN is a two-digit number between 00 and 99, inclusive - a higher number means the program will be executed later in the suspend process. See the ORDERING section in the SCRIPTLET-API for details.
+ return 0
+ AddConfigHelp OnResume NN <program to execute> [parameters for program] Executes a given program after resuming. NN is a number between 00 and 99, inclusive - a higher number means the program will be executed earlier in the resume process. See the ORDERING section in the SCRIPTLET-API for details.
+ return 0
+ MISC_LAUNCH_COUNT=0
+ scriptlet_name=modules
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_modules}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_modules=/usr/local/share/hibernate/scriptlets.d/modules
+ HAVE_SOURCED_SCRIPTLET_modules=/usr/local/share/hibernate/scriptlets.d/modules
+ CURRENT_SOURCED_SCRIPTLET=modules
+ . /usr/local/share/hibernate/scriptlets.d/modules
+ AddConfigHandler ModulesOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions MiscLaunchOptions ModulesOptions
+ AddConfigHelp UnloadModules <module name> [...] Names of modules to unload prior to suspending.
+ return 0
+ AddConfigHelp LoadModules auto|<module name> [...] Names of modules to load after resumimg. If auto is specified, the modules that were unloaded previously are loaded.
+ return 0
+ AddConfigHelp UnloadBlacklistedModules <boolean> Try to remove any modules that are known to be incompatible with hibernation prior to suspending.
+ return 0
+ AddConfigHelp UnloadAllModules <boolean> Try to remove all modules loaded prior to suspending.
+ return 0
+ AddConfigHelp LoadModulesFromFile <filename> Load default modules after resuming from a given filename. Each module name must appear on its own line, and lines starting with # are ignored. (eg, Debian's /etc/modules, Gentoo's /etc/modules.autoload)
+ return 0
+ MODULES_BLACKLIST_FILE=/etc/hibernate/blacklisted-modules
+ NON_RECURSIVE_MODPROBE=
+ [ -z  ]
+ AddSuspendHook 89 SaveKernelModprobe
+ SUSPEND_BITS=89SaveKernelModprobe\n98CheckRunlevel\n01CheckRunlevel\n01CheckLastResume\n01LockFileGet\n
+ AddResumeHook 89 RestoreKernelModprobe
+ RESUME_BITS=89RestoreKernelModprobe\n01NoteLastResume\n01LockFilePut\n
+ MODPROBE_HOOKED=1
+ MOD_UNLOADED=
+ scriptlet_name=modules_gentoo
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_modules_gentoo}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_modules_gentoo=/usr/local/share/hibernate/scriptlets.d/modules_gentoo
+ HAVE_SOURCED_SCRIPTLET_modules_gentoo=/usr/local/share/hibernate/scriptlets.d/modules_gentoo
+ CURRENT_SOURCED_SCRIPTLET=modules_gentoo
+ . /usr/local/share/hibernate/scriptlets.d/modules_gentoo
+ AddConfigHandler GentooModulesOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions MiscLaunchOptions ModulesOptions GentooModulesOptions
+ AddConfigHelp GentooModulesAutoload <boolean> Try to load default modules after resuming (from /etc/modules.autoload)
+ return 0
+ scriptlet_name=network
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_network}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_network=/usr/local/share/hibernate/scriptlets.d/network
+ HAVE_SOURCED_SCRIPTLET_network=/usr/local/share/hibernate/scriptlets.d/network
+ CURRENT_SOURCED_SCRIPTLET=network
+ . /usr/local/share/hibernate/scriptlets.d/network
+ AddConfigHandler NetworkConfigOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions MiscLaunchOptions ModulesOptions GentooModulesOptions NetworkConfigOptions
+ AddConfigHelp DownInterfaces auto|<ifname> [...] The names of network interfaces to bring down before suspending. If the parameter "auto" is given, all interfaces which are not lo are brought down.
+ return 0
+ AddConfigHelp UpInterfaces auto|<ifname> [...] The names of network interfaces to bring up after suspending. If the parameter "auto" is given, the interfaces stopped before suspending will be started in reverse order.
+ return 0
+ scriptlet_name=networkmanager
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_networkmanager}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_networkmanager=/usr/local/share/hibernate/scriptlets.d/networkmanager
+ HAVE_SOURCED_SCRIPTLET_networkmanager=/usr/local/share/hibernate/scriptlets.d/networkmanager
+ CURRENT_SOURCED_SCRIPTLET=networkmanager
+ . /usr/local/share/hibernate/scriptlets.d/networkmanager
+ AddConfigHandler NMOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions MiscLaunchOptions ModulesOptions GentooModulesOptions NetworkConfigOptions NMOptions
+ AddConfigHelp EnableNMReconnect <boolean> Disconnect and reconnect NM before and after suspending.
+ return 0
+ scriptlet_name=newkernel
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_newkernel}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_newkernel=/usr/local/share/hibernate/scriptlets.d/newkernel
+ HAVE_SOURCED_SCRIPTLET_newkernel=/usr/local/share/hibernate/scriptlets.d/newkernel
+ CURRENT_SOURCED_SCRIPTLET=newkernel
+ . /usr/local/share/hibernate/scriptlets.d/newkernel
+ NEWKERNELFILE=/var/run/suspend2-new-kernel
+ AddSuspendHook 01 NewKernelFileCheck
+ SUSPEND_BITS=01NewKernelFileCheck\n89SaveKernelModprobe\n98CheckRunlevel\n01CheckRunlevel\n01CheckLastResume\n01LockFileGet\n
+ scriptlet_name=pause_audio
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_pause_audio}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_pause_audio=/usr/local/share/hibernate/scriptlets.d/pause_audio
+ HAVE_SOURCED_SCRIPTLET_pause_audio=/usr/local/share/hibernate/scriptlets.d/pause_audio
+ CURRENT_SOURCED_SCRIPTLET=pause_audio
+ . /usr/local/share/hibernate/scriptlets.d/pause_audio
+ AddConfigHandler PauseAudioOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions MiscLaunchOptions ModulesOptions GentooModulesOptions NetworkConfigOptions NMOptions PauseAudioOptions
+ AddConfigHelp MuteAudio <boolean> This will mute your speakers on suspend to avoid compromising situations on resume.
+ return 0
+ AddConfigHelp PauseAudio <boolean> This will pause your audio player before suspending. Audio is not unpaused on resume.
+ return 0
+ scriptlet_name=pcmcia
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_pcmcia}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_pcmcia=/usr/local/share/hibernate/scriptlets.d/pcmcia
+ HAVE_SOURCED_SCRIPTLET_pcmcia=/usr/local/share/hibernate/scriptlets.d/pcmcia
+ CURRENT_SOURCED_SCRIPTLET=pcmcia
+ . /usr/local/share/hibernate/scriptlets.d/pcmcia
+ AddConfigHandler PCMCIAOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions MiscLaunchOptions ModulesOptions GentooModulesOptions NetworkConfigOptions NMOptions PauseAudioOptions PCMCIAOptions
+ AddConfigHelp EjectCards <boolean>  Eject all PCMCIA cards before suspending, and insert them again after resuming
+ return 0
+ scriptlet_name=programs
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_programs}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_programs=/usr/local/share/hibernate/scriptlets.d/programs
+ HAVE_SOURCED_SCRIPTLET_programs=/usr/local/share/hibernate/scriptlets.d/programs
+ CURRENT_SOURCED_SCRIPTLET=programs
+ . /usr/local/share/hibernate/scriptlets.d/programs
+ AddConfigHandler ProgramsOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions MiscLaunchOptions ModulesOptions GentooModulesOptions NetworkConfigOptions NMOptions PauseAudioOptions PCMCIAOptions ProgramsOptions
+ AddConfigHelp IncompatiblePrograms <process name> [...] If there are processes running with any of the names listed (as seen in ps ax), then suspending is aborted. If the --kill option is passed, the offending processes are terminated, and the suspend continues.
+ return 0
+ scriptlet_name=remount_xfsboot
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_remount_xfsboot}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_remount_xfsboot=/usr/local/share/hibernate/scriptlets.d/remount_xfsboot
+ HAVE_SOURCED_SCRIPTLET_remount_xfsboot=/usr/local/share/hibernate/scriptlets.d/remount_xfsboot
+ CURRENT_SOURCED_SCRIPTLET=remount_xfsboot
+ . /usr/local/share/hibernate/scriptlets.d/remount_xfsboot
+ AddConfigHandler XFSBootConfigOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions MiscLaunchOptions ModulesOptions GentooModulesOptions NetworkConfigOptions NMOptions PauseAudioOptions PCMCIAOptions ProgramsOptions XFSBootConfigOptions
+ AddConfigHelp RemountXFSBoot <boolean> Remount the /boot partition read-only when suspending to prevent against an XFS bug.
+ return 0
+ AddSuspendHook 59 RemountXFSBootRO
+ SUSPEND_BITS=59RemountXFSBootRO\n01NewKernelFileCheck\n89SaveKernelModprobe\n98CheckRunlevel\n01CheckRunlevel\n01CheckLastResume\n01LockFileGet\n
+ AddResumeHook 59 RemountXFSBootRW
+ RESUME_BITS=59RemountXFSBootRW\n89RestoreKernelModprobe\n01NoteLastResume\n01LockFilePut\n
+ REMOUNT_XFSBOOT=1
+ scriptlet_name=services
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_services}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_services=/usr/local/share/hibernate/scriptlets.d/services
+ HAVE_SOURCED_SCRIPTLET_services=/usr/local/share/hibernate/scriptlets.d/services
+ CURRENT_SOURCED_SCRIPTLET=services
+ . /usr/local/share/hibernate/scriptlets.d/services
+ AddConfigHandler ServicesOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions MiscLaunchOptions ModulesOptions GentooModulesOptions NetworkConfigOptions NMOptions PauseAudioOptions PCMCIAOptions ProgramsOptions XFSBootConfigOptions ServicesOptions
+ AddConfigHelp StopServices <service name> [...] The services listed are stopped prior to suspending. The service name must correspond to the name of an init.d script that is active in the current runlevel.
+ return 0
+ AddConfigHelp StartServices <service name> [...] The services listed are started after resuming. The service name must correspond to the name of an init.d script that is active in the current runlevel.
+ return 0
+ AddConfigHelp RestartServices <service name> [...] The services listed are stopped before suspending and started after resuming. The service name must correspond to the name of an init.d script that is active in the current runlevel.
+ return 0
+ scriptlet_name=suspend2
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_suspend2}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_suspend2=/usr/local/share/hibernate/scriptlets.d/suspend2
+ HAVE_SOURCED_SCRIPTLET_suspend2=/usr/local/share/hibernate/scriptlets.d/suspend2
+ CURRENT_SOURCED_SCRIPTLET=suspend2
+ . /usr/local/share/hibernate/scriptlets.d/suspend2
+ AddTerminationHandler TuxOnIceTermination
+ TERMINATION_HANDLERS= TuxOnIceTermination
+ AddConfigHandler TuxOnIceConfigEnabler
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions MiscLaunchOptions ModulesOptions GentooModulesOptions NetworkConfigOptions NMOptions PauseAudioOptions PCMCIAOptions ProgramsOptions XFSBootConfigOptions ServicesOptions TuxOnIceConfigEnabler
+ AddOptionHandler TuxOnIceOptionHandler
+ CMDLINE_OPTION_HANDLERS= ACPISleepOptionHandler GrubCmdlineOptions LockCmdlineOptions TuxOnIceOptionHandler
+ AddConfigHelp UseTuxOnIce <boolean> Enable/disable the use of TuxOnIce to hibernate.
+ return 0
+ AddConfigHelp Reboot <boolean> (requires UseTuxOnIce on) Controls whether or not TuxOnIce should reboot after hibernating. Setting this to yes will force a reboot. Setting this to no will force shutting down. Omitting this option will leave rebooting behaviour unchanged.
+ return 0
+ AddShortOption r::
+ EXTRA_SHORT_OPTS=ngr::
+ AddLongOption reboot::
+ EXTRA_LONG_OPTS=,no-suspend,restore-grub,lock-console-as:,reboot::
+ AddOptionHelp -r[0|1], --reboot[=<0|1>] (requires UseTuxOnIce on) If 0 is specified, disables rebooting after writing the image, regardless of the Reboot option in the configuration file. If 1 or omitted, will force a reboot after writing the image.
+ [ -n 1 ]
+ return
+ AddConfigHelp EnableEscape <boolean> (requires UseTuxOnIce on) If specified, allows (or disallows) the use of the escape key to abort a hibernation cycle. If this line is not specified, the Escape key's behaviour is unchanged.
+ return 0
+ AddConfigHelp DefaultConsoleLevel <N> (requires UseTuxOnIce on) If specified, sets the default console level. 0 gives a progress bar. 1 gives a progress bar with numbers. 2 or higher give increasing amounts of debugging. If this line is not specified, the default console level is unchanged.
+ return 0
+ AddConfigHelp ImageSizeLimit nocache|<NN> (requires UseTuxOnIce on) If specified, sets an upper limit on the size of the hibernation image written (in megabytes). If set to "nocache", caches and buffers will not be saved - resulting in a faster hibernation and resume at the possible expense of system responsiveness immediately after resuming. If set to 0, no limit is imposed. If this line is not specified, the existing image size limit is unchanged.
+ return 0
+ AddConfigHelp AsyncIOLimit <N> (requires UseTuxOnIce on) Deprecated since 2.1.5.11 (hence won't do anything if set). Limit the number of I/O operations that TuxOnIce will have queued at once. Lowering this value has resolved hangs when reading or writing caches for some people. Try values like 64, 32 and 8.
+ return 0
+ AddConfigHelp SuspendDevice <device> (requires UseTuxOnIce on) If specified, sets the hibernation device by writing to the resume[2] entry in . This does not automatically set the resuming device - you will need to make sure your bootloader or initrd script does this.
+ return 0
+ AddConfigHelp FilewriterLocation <filename> <size in MB> (requires UseTuxOnIce on) This option sets up the given filename to act as a destination file for writing the hibernation image to, and verifies that it can act as a valid destination. If the file does not exist, the file is created. This option is only relevant if you are using the filewriter plugin for TuxOnIce.
+ return 0
+ AddConfigHelp VerifyFilewriterResume2 <boolean> (requires UseTuxOnIce on) When this option is on, you will be prompted if your current kernel command-line does not match the correct resume[2] for the filewriter. This option is on by default.
+ return 0
+ AddConfigHelp LoadSuspendModules <module name> [...] (requires UseTuxOnIce on) Loads the given modules before even detecting TuxOnIce. This may be required when TuxOnIce is compiled as modules that need to be loaded prior to hibernating.
+ return 0
+ AddConfigHelp UnloadSuspendModulesAfterResume <boolean> (requires UseTuxOnIce on) If yes, will unload the TuxOnIce modules mentioned above after resuming.
+ return 0
+ AddConfigHelp PowerdownMethod <0|3|4|5> (requires UseTuxOnIce on) Allows you to choose what TuxOnIce should do after writing its image to disk. 3/4/5 will only work if you have ACPI enabled in your kernel. 3/4/5 correspond to the ACPI states S3 (suspend-to-RAM), S4 (hibernate-to-disk), and S5 (power off). Choosing 3 will request your machine to enter the S3 Suspend-to-RAM state if it is supported - this allows you drastically cut the resume time waiting for your BIOS but still consumes power whilst hibernated (though the image is not lost should power run out). Choosing 4 will cause your machine to enter an S4 sleep state which may also reduce the resume time without using any power whilst hibernated. Choosing 5 will cause your machine to switch off after hibernating (traditional method) but might still cause your machine to resume when you open the lid. 0 bypasses ACPI and shuts off the machine completely.
+ return 0
+ AddConfigHelp Compressor none|<compressor name> (requires UseTuxOnIce on) Sets the compression algorithm to use for compressing the memory image. If set to "none", disables compression. Otherwise, the compressor name must be listed in /proc/crypto. This will also try to load the module if not available. (Only for TuxOnIce.1.9.5 or newer).
+ return 0
+ AddConfigHelp Encryptor none|<encryptor name> (requires UseTuxOnIce on) Sets the encryption algorithm to use for encrypting the memory image. If set to "none", disables encryption. Otherwise, the cipher name must be listed in /proc/crypto. This will also try to load the module if not available. You will probably require more options than just this to fully use encryption. These will be introduced in the next version of hibernate, but for now you can set them using the "ProcSetting" option if you know what you are doing. (Only for TuxOnIce.1.9.5 or newer).
+ return 0
+ AddConfigHelp ProcSetting <entry name> <value> (requires UseTuxOnIce on) Sets the value of /<entry_name> to <value> upon hibernating. You can use this setting to set parameters that can't be configured anywhere else in this script. This is executed after all other settings have been set.
+ return 0
+ AddShortOption n
+ EXTRA_SHORT_OPTS=ngr::n
+ AddLongOption no-suspend
+ EXTRA_LONG_OPTS=,no-suspend,restore-grub,lock-console-as:,reboot::,no-suspend
+ AddLongOption bug-report
+ EXTRA_LONG_OPTS=,no-suspend,restore-grub,lock-console-as:,reboot::,no-suspend,bug-report
+ AddOptionHelp --bug-report (requires UseTuxOnIce on) Gathers a bunch of information about your machine and writes it to standard output. Please attach this information along with any bug reports to the TuxOnIce mailing list.
+ [ -n 1 ]
+ return
+ TUXONICE_BINARY_SIG=\xed\xc3\x02\xe9\x98\x56\xe5\x0c
+ scriptlet_name=swsusp2_15
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_swsusp2_15}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_swsusp2_15=/usr/local/share/hibernate/scriptlets.d/swsusp2_15
+ HAVE_SOURCED_SCRIPTLET_swsusp2_15=/usr/local/share/hibernate/scriptlets.d/swsusp2_15
+ CURRENT_SOURCED_SCRIPTLET=swsusp2_15
+ . /usr/local/share/hibernate/scriptlets.d/swsusp2_15
+ scriptlet_name=sylpheed_claws
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_sylpheed_claws}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_sylpheed_claws=/usr/local/share/hibernate/scriptlets.d/sylpheed_claws
+ HAVE_SOURCED_SCRIPTLET_sylpheed_claws=/usr/local/share/hibernate/scriptlets.d/sylpheed_claws
+ CURRENT_SOURCED_SCRIPTLET=sylpheed_claws
+ . /usr/local/share/hibernate/scriptlets.d/sylpheed_claws
+ command -v sylpheed-claws
+ sylpheedclaws=
+ AddConfigHandler SylpheedClawsOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions MiscLaunchOptions ModulesOptions GentooModulesOptions NetworkConfigOptions NMOptions PauseAudioOptions PCMCIAOptions ProgramsOptions XFSBootConfigOptions ServicesOptions TuxOnIceConfigEnabler SylpheedClawsOptions
+ AddConfigHelp SylpheedClawsOffline <boolean> Changes status of all locally running Sylpheed Claws to offline before suspending, and (optionally) change it to online after resuming.
+ return 0
+ AddConfigHelp SylpheedClawsOnline <boolean> Changes status of all locally running Sylpheed Claws to online after resuming.
+ return 0
+ scriptlet_name=sysfs_power_state
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_sysfs_power_state}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_sysfs_power_state=/usr/local/share/hibernate/scriptlets.d/sysfs_power_state
+ HAVE_SOURCED_SCRIPTLET_sysfs_power_state=/usr/local/share/hibernate/scriptlets.d/sysfs_power_state
+ CURRENT_SOURCED_SCRIPTLET=sysfs_power_state
+ . /usr/local/share/hibernate/scriptlets.d/sysfs_power_state
+ AddConfigHandler SysfsPowerStateConfigEnabler
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions MiscLaunchOptions ModulesOptions GentooModulesOptions NetworkConfigOptions NMOptions PauseAudioOptions PCMCIAOptions ProgramsOptions XFSBootConfigOptions ServicesOptions TuxOnIceConfigEnabler SylpheedClawsOptions SysfsPowerStateConfigEnabler
+ AddOptionHandler SysfsPowerStateOptionHandler
+ CMDLINE_OPTION_HANDLERS= ACPISleepOptionHandler GrubCmdlineOptions LockCmdlineOptions TuxOnIceOptionHandler SysfsPowerStateOptionHandler
+ AddConfigHelp UseSysfsPowerState <state> Enables the use of /sys/power/state for suspending the machine (to RAM or disk). This requires a kernel supporting this interface. <state> must be one of the options listed by `cat /sys/power/state`, (eg mem, disk, or standby).
+ return 0
+ AddConfigHelp PowerdownMethod <shutdown|platform|firmware> (requires UseSysfsPowerState) If using /sys/power/state to suspend your machine to disk, chooses the method by which to do so. Choosing "shutdown" will save state in linux, then tell the bios to powerdown (most reliable). Choosing "platform" will save state in linux, then tell the bios to powerdown and blink it's "suspended LED". Choosing "firmware" will tell the bios to save state itself (needs BIOS-specific suspend partition, and has very little to do with swsusp).
+ return 0
+ AddShortOption n
+ EXTRA_SHORT_OPTS=ngr::nn
+ AddLongOption no-suspend
+ EXTRA_LONG_OPTS=,no-suspend,restore-grub,lock-console-as:,reboot::,no-suspend,bug-report,no-suspend
+ AddOptionHelp -n, --no-suspend Disables actually suspending the system. This is useful for testing the hibernate script itself.
+ [ -n 1 ]
+ return
+ SYSFS_POWER_STATE_FILE=/sys/power/state
+ SYSFS_POWERDOWN_METHOD_FILE=/sys/power/disk
+ scriptlet_name=ususpend
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_ususpend}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_ususpend=/usr/local/share/hibernate/scriptlets.d/ususpend
+ HAVE_SOURCED_SCRIPTLET_ususpend=/usr/local/share/hibernate/scriptlets.d/ususpend
+ CURRENT_SOURCED_SCRIPTLET=ususpend
+ . /usr/local/share/hibernate/scriptlets.d/ususpend
+ AddConfigHandler USuspendConfigEnabler
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions MiscLaunchOptions ModulesOptions GentooModulesOptions NetworkConfigOptions NMOptions PauseAudioOptions PCMCIAOptions ProgramsOptions XFSBootConfigOptions ServicesOptions TuxOnIceConfigEnabler SylpheedClawsOptions SysfsPowerStateConfigEnabler USuspendConfigEnabler
+ AddOptionHandler USuspendOptionHandler
+ CMDLINE_OPTION_HANDLERS= ACPISleepOptionHandler GrubCmdlineOptions LockCmdlineOptions TuxOnIceOptionHandler SysfsPowerStateOptionHandler USuspendOptionHandler
+ AddConfigHelp USuspendMethod <disk|ram|both> Enables use of the uswsusp suspend method of newer kernels (>= 2.6.17rc1)
+ return 0
+ AddConfigHelp USuspendRamForce <boolean> Passes the -f flag to s2ram to force suspending even if the machine is not recognised
+ return 0
+ AddConfigHelp USuspendRamUnsureOk <boolean> Instructs s2ram to continue when it's unsure about the system type, thus not requiring -f to be passed
+ return 0
+ AddConfigHelp USuspendRamVbeSave <boolean> Passes the -s flag to s2ram to save VBE state before suspending and restore after resume
+ return 0
+ AddConfigHelp USuspendRamVbePost <boolean> Passes the -p flag to s2ram to VBE POST the graphics card after resume
+ return 0
+ AddConfigHelp USuspendRamVbeMode <boolean> Passes the -m flag to s2ram to get VBE mode before suspend and set it after resume
+ return 0
+ AddConfigHelp USuspendRamRadeontool <boolean> Passes the -r flag to s2ram to let radeontool turn of the backlight before suspending.
+ return 0
+ AddConfigHelp USuspendRamAcpiSleep <number> Passes the -a flag to s2ram to set the acpi_sleep parameter before suspend: 1=s3_bios, 2=s3_mode, 3=both
+ return 0
+ AddConfigHelp USuspendRamPciSave <boolean> Passes the -v flag to s2ram to have the PCI config space of the VGA card before suspend, and restore it on resume
+ return 0
+ AddShortOption n
+ EXTRA_SHORT_OPTS=ngr::nnn
+ AddLongOption no-suspend
+ EXTRA_LONG_OPTS=,no-suspend,restore-grub,lock-console-as:,reboot::,no-suspend,bug-report,no-suspend,no-suspend
+ USUSPEND_STATE_FILE=/sys/power/state
+ USUSPEND_DEVICE=/dev/snapshot
+ USUSPEND_PROG=s2disk
+ USUSPEND_RAM_FORCE=0
+ USUSPEND_RAM_UNSUREOK=0
+ USUSPEND_RAM_VBESAVE=0
+ USUSPEND_RAM_VBEPOST=0
+ USUSPEND_RAM_VBEMODE=0
+ USUSPEND_RAM_RADEONTOOL=0
+ USUSPEND_RAM_ACPISLEEP=0
+ USUSPEND_RAM_PCISAVE=0
+ scriptlet_name=vbetool
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_vbetool}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_vbetool=/usr/local/share/hibernate/scriptlets.d/vbetool
+ HAVE_SOURCED_SCRIPTLET_vbetool=/usr/local/share/hibernate/scriptlets.d/vbetool
+ CURRENT_SOURCED_SCRIPTLET=vbetool
+ . /usr/local/share/hibernate/scriptlets.d/vbetool
+ AddConfigHandler VbetoolOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions MiscLaunchOptions ModulesOptions GentooModulesOptions NetworkConfigOptions NMOptions PauseAudioOptions PCMCIAOptions ProgramsOptions XFSBootConfigOptions ServicesOptions TuxOnIceConfigEnabler SylpheedClawsOptions SysfsPowerStateConfigEnabler USuspendConfigEnabler VbetoolOptions
+ AddConfigHelp EnableVbetool <boolean> Save and restore video state using vbetool before and after suspending.
+ return 0
+ AddConfigHelp RestoreVbeStateFrom <filename> If set, will restore the VBE state with the data stored in <filename>. Use this if your card requires you to restore it with a state captured at boot (from single user mode, run "vbetool vbestate save > /var/lib/vbetool/vbestate"). If this option is not set, the state is saved just before suspending.
+ return 0
+ AddConfigHelp VbetoolPost <boolean> If yes, will call the video BIOS's POST routine to reinitialise the video card. Some cards need this to turn on the backlight back and be useful after resuming. Other video cards will hang if you attempt to POST them. Try it with yours and see.
+ return 0
+ AddConfigHelp RestoreVCSAData <boolean> If yes, will call save and restore some of the video card's state from /dev/vcsa. This helps certain drivers such as ATI's fglrx driver to resume properly.
+ return 0
+ VBETOOL_VT=61
+ VBETOOL_ENABLED=
+ VBETOOL_POST=
+ VBETOOL_SAVED_STATE=
+ VBETOOL_SAVEVCSADATA=
+ scriptlet_name=videodump
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_videodump}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_videodump=/usr/local/share/hibernate/scriptlets.d/videodump
+ HAVE_SOURCED_SCRIPTLET_videodump=/usr/local/share/hibernate/scriptlets.d/videodump
+ CURRENT_SOURCED_SCRIPTLET=videodump
+ . /usr/local/share/hibernate/scriptlets.d/videodump
+ AddConfigHandler VideoDumpOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions MiscLaunchOptions ModulesOptions GentooModulesOptions NetworkConfigOptions NMOptions PauseAudioOptions PCMCIAOptions ProgramsOptions XFSBootConfigOptions ServicesOptions TuxOnIceConfigEnabler SylpheedClawsOptions SysfsPowerStateConfigEnabler USuspendConfigEnabler VbetoolOptions VideoDumpOptions
+ AddConfigHelp EnableVideoDump <boolean> Dump and load video card memory before and after suspending.
+ return 0
+ VIDEODUMP_VT=62
+ VIDEODUMP_ENABLED=
+ VIDEODUMP_ID=
+ scriptlet_name=xhacks
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_xhacks}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_xhacks=/usr/local/share/hibernate/scriptlets.d/xhacks
+ HAVE_SOURCED_SCRIPTLET_xhacks=/usr/local/share/hibernate/scriptlets.d/xhacks
+ CURRENT_SOURCED_SCRIPTLET=xhacks
+ . /usr/local/share/hibernate/scriptlets.d/xhacks
+ AddConfigHandler XHacksOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions MiscLaunchOptions ModulesOptions GentooModulesOptions NetworkConfigOptions NMOptions PauseAudioOptions PCMCIAOptions ProgramsOptions XFSBootConfigOptions ServicesOptions TuxOnIceConfigEnabler SylpheedClawsOptions SysfsPowerStateConfigEnabler USuspendConfigEnabler VbetoolOptions VideoDumpOptions XHacksOptions
+ AddConfigHelp SwitchToTextMode <boolean> If your X driver is unable to resume properly, you can try switching to a text console first by setting this to yes.
+ return 0
+ AddConfigHelp SwitchToTextModeOnResume <boolean> Use this to, on resume, switch to a text console and back. Some X drivers need this to properly resume.
+ return 0
+ AddConfigHelp UseDummyXServer <boolean> Some X drivers can be reinitialised by launching a dummy X server after resuming to restore the state of the graphics card. Set this to yes to do so.
+ return 0
+ AddConfigHelp DummyXServerConfig <filename> When using a dummy X server, use /etc/X11/<filename> as its configuration.
+ return 0
+ scriptlet_name=xstatus
+ eval prev_path="${HAVE_SOURCED_SCRIPTLET_xstatus}"
+ prev_path=
+ [ -n  ]
+ eval HAVE_SOURCED_SCRIPTLET_xstatus=/usr/local/share/hibernate/scriptlets.d/xstatus
+ HAVE_SOURCED_SCRIPTLET_xstatus=/usr/local/share/hibernate/scriptlets.d/xstatus
+ CURRENT_SOURCED_SCRIPTLET=xstatus
+ . /usr/local/share/hibernate/scriptlets.d/xstatus
+ XSTATUS_SUSPEND_TEXT=Preparing to suspend...
+ XSTATUS_RESUME_TEXT=Resuming from suspend...
+ XOSD_SETTINGS=--font '-misc-fixed-medium-r-semicondensed--*-120-*-*-c-*-*-*' --colour=Green --shadow 1 --pos bottom --align center --offset 50
+ AddConfigHandler XStatusOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions MiscLaunchOptions ModulesOptions GentooModulesOptions NetworkConfigOptions NMOptions PauseAudioOptions PCMCIAOptions ProgramsOptions XFSBootConfigOptions ServicesOptions TuxOnIceConfigEnabler SylpheedClawsOptions SysfsPowerStateConfigEnabler USuspendConfigEnabler VbetoolOptions VideoDumpOptions XHacksOptions XStatusOptions
+ AddConfigHelp XStatus <gnome|kde|x> Enables progress display and error reporting for the given environment.
+ return 0
+ AddConfigHelp XmessageDisable <boolean> Disable display of xmessage dialogs if XStatus is set to "x".
+ return 0
+ AddConfigHelp XSuspendText <message> Text to display on screen whilst preparing to suspend. (default: "Preparing to suspend...")
+ return 0
+ AddConfigHelp XResumeText <message> Text to display on screen whilst coming back from suspend. (default: "Resuming from suspend...")
+ return 0
+ AddConfigHelp XosdSettings <options> Options to pass to osd_cat, see 'man osd_cat' (default: "--font '-misc-fixed-medium-r-semicondensed--*-120-*-*-c-*-*-*' --colour=Green --shadow 1 --pos bottom --align center --offset 50")
+ return 0
+ [ -d /usr/share/hibernate/scriptlets.d ]
+ continue
+ [ -z xstatus ]
+ CURRENT_SOURCED_SCRIPTLET=
+ ReadConfigFile /etc/hibernate/hibernate.conf
+ local option params
+ local file_name
+ file_name=/etc/hibernate/hibernate.conf
+ [ ! -f /etc/hibernate/hibernate.conf ]
+ [  !=  ]
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z TryMethod ]
+ ProcessConfigOption TryMethod suspend2.conf
+ local option
+ local params
+ echo TryMethod
+ tr [A-Z] [a-z]
+ option=trymethod
+ shift
+ params=suspend2.conf
+ [ -z  ]
+ NO_COMPLAIN_UNSUPPORTED=1
+ vecho 1 hibernate: Trying method in suspend2.conf...
+ local v
+ v=1
+ shift
+ [ x = x1 ]
+ [ 1 -le 0 ]
+ [ 1 -le 1 -a cat != cat ]
+ ReadConfigFile suspend2.conf
+ local option params
+ local file_name
+ file_name=suspend2.conf
+ [ ! -f suspend2.conf ]
+ [  !=  ]
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z UseSuspend2 ]
+ ProcessConfigOption UseSuspend2 yes
+ local option
+ local params
+ echo UseSuspend2
+ tr [A-Z] [a-z]
+ option=usesuspend2
+ shift
+ params=yes
+ PluginConfigOption usesuspend2 yes
+ local i
+ ACPISleepConfigEnabler usesuspend2 yes
+ [ usesuspend2 != useacpisleep ]
+ return 1
+ BackLightOptions usesuspend2 yes
+ return 1
+ SplashOptions usesuspend2 yes
+ return 1
+ ClockOptions usesuspend2 yes
+ local param
+ return 1
+ DevicesOptions usesuspend2 yes
+ return 1
+ DiskCacheOptions usesuspend2 yes
+ return 1
+ FBSplashOptions usesuspend2 yes
+ return 1
+ FilesystemsOptions usesuspend2 yes
+ return 1
+ GaimOptions usesuspend2 yes
+ return 1
+ GaleonOptions usesuspend2 yes
+ return 1
+ GFXBrightnessOptions usesuspend2 yes
+ return 1
+ GrubConfigOptions usesuspend2 yes
+ return 1
+ HardwareTweaksOptions usesuspend2 yes
+ return 1
+ LILOConfigOptions usesuspend2 yes
+ return 1
+ LockOptions usesuspend2 yes
+ return 1
+ MiscLaunchOptions usesuspend2 yes
+ return 1
+ ModulesOptions usesuspend2 yes
+ return 1
+ GentooModulesOptions usesuspend2 yes
+ return 1
+ NetworkConfigOptions usesuspend2 yes
+ local opt
+ opt=usesuspend2
+ shift
+ return 1
+ NMOptions usesuspend2 yes
+ return 1
+ PauseAudioOptions usesuspend2 yes
+ return 1
+ PCMCIAOptions usesuspend2 yes
+ return 1
+ ProgramsOptions usesuspend2 yes
+ return 1
+ XFSBootConfigOptions usesuspend2 yes
+ return 1
+ ServicesOptions usesuspend2 yes
+ return 1
+ TuxOnIceConfigEnabler usesuspend2 yes
+ echo TuxOnIceConfigEnabler: usesuspend2; Using TuxOnIce is 
TuxOnIceConfigEnabler: usesuspend2; Using TuxOnIce is 
+ [ usesuspend2 != usesuspend2 ]
+ BoolIsOn usesuspend2 yes
+ local val
+ echo yes
+ tr [A-Z] [a-z]
+ val=yes
+ [ yes = on ]
+ [ yes = off ]
+ [ yes = true ]
+ [ yes = false ]
+ [ yes = yes ]
+ return 0
+ [ -n  ]
+ TUXONICE_MODS=suspend_core suspend_block_io suspend_file suspend_swap suspend_compress suspend_userui tuxonice_core tuxonice_block_io tuxonice_file tuxonice_swap tuxonice_compress tuxonice_userui
+ TUXONICE_RMOD=
+ /sbin/modprobe --first-time suspend_core
+ /sbin/modprobe --first-time suspend_block_io
+ /sbin/modprobe --first-time suspend_file
+ /sbin/modprobe --first-time suspend_swap
+ /sbin/modprobe --first-time suspend_compress
+ /sbin/modprobe --first-time suspend_userui
+ /sbin/modprobe --first-time tuxonice_core
+ /sbin/modprobe --first-time tuxonice_block_io
+ /sbin/modprobe --first-time tuxonice_file
+ /sbin/modprobe --first-time tuxonice_swap
+ /sbin/modprobe --first-time tuxonice_compress
+ /sbin/modprobe --first-time tuxonice_userui
+ FILEWRITER_SIGNATURE=Suspend2
+ [ -d /sys/power/tuxonice/ ]
+ TUXONICE_ROOT=/sys/power/tuxonice
+ FILEWRITER_SIGNATURE=TuxOnIce
+ COMPRESSION_ROOT=/sys/power/tuxonice
+ ENCRYPTION_ROOT=/sys/power/tuxonice
+ FILEWRITER_ROOT=/sys/power/tuxonice
+ SWAPWRITER_ROOT=/sys/power/tuxonice
+ UI_ROOT=/sys/power/tuxonice
+ STORAGEMAN_ROOT=/sys/power/tuxonice
+ [ -d /sys/power/tuxonice/compression/ ]
+ COMPRESSION_ROOT=/sys/power/tuxonice/compression
+ [ -d /sys/power/tuxonice/encryption/ ]
+ [ -d /sys/power/tuxonice/filewriter/ ]
+ [ -d /sys/power/tuxonice/swapwriter/ ]
+ [ -d /sys/power/tuxonice/file/ ]
+ FILE_DIR=file
+ [ -d /sys/power/tuxonice/swap/ ]
+ SWAP_DIR=swap
+ [ -d /sys/power/tuxonice/user_interface/ ]
+ UI_ROOT=/sys/power/tuxonice/user_interface
+ [ -d /sys/power/tuxonice/storage_manager/ ]
+ STORAGEMAN_ROOT=/sys/power/tuxonice/storage_manager
+ [ -n file ]
+ FILEWRITER_ROOT=/sys/power/tuxonice/file
+ [ -n swap ]
+ SWAPWRITER_ROOT=/sys/power/tuxonice/swap
+ HIBERNATE_FILEWRITER_TRAIL=/var/run/TuxOnIce_filewriter_image_exists
+ [ -n 1 ]
+ [ -d /sys/power/tuxonice ]
+ UsingSuspendMethod TuxOnIce
+ [ -n  ]
+ HIBERNATE_SUSPEND_METHOD=TuxOnIce
+ return 0
+ AddConfigHandler TuxOnIceConfigOptions
+ CONFIG_OPTION_HANDLERS= ACPISleepConfigEnabler BackLightOptions SplashOptions ClockOptions DevicesOptions DiskCacheOptions FBSplashOptions FilesystemsOptions GaimOptions GaleonOptions GFXBrightnessOptions GrubConfigOptions HardwareTweaksOptions LILOConfigOptions LockOptions MiscLaunchOptions ModulesOptions GentooModulesOptions NetworkConfigOptions NMOptions PauseAudioOptions PCMCIAOptions ProgramsOptions XFSBootConfigOptions ServicesOptions TuxOnIceConfigEnabler SylpheedClawsOptions SysfsPowerStateConfigEnabler USuspendConfigEnabler VbetoolOptions VideoDumpOptions XHacksOptions XStatusOptions TuxOnIceConfigOptions
+ AddSuspendHook 10 EnsureTuxOnIceCapable
+ SUSPEND_BITS=10EnsureTuxOnIceCapable\n59RemountXFSBootRO\n01NewKernelFileCheck\n89SaveKernelModprobe\n98CheckRunlevel\n01CheckRunlevel\n01CheckLastResume\n01LockFileGet\n
+ AddSuspendHook 97 ChangeToTuxOnIceVT
+ SUSPEND_BITS=97ChangeToTuxOnIceVT\n10EnsureTuxOnIceCapable\n59RemountXFSBootRO\n01NewKernelFileCheck\n89SaveKernelModprobe\n98CheckRunlevel\n01CheckRunlevel\n01CheckLastResume\n01LockFileGet\n
+ AddSuspendHook 99 DoTuxOnIce
+ SUSPEND_BITS=99DoTuxOnIce\n97ChangeToTuxOnIceVT\n10EnsureTuxOnIceCapable\n59RemountXFSBootRO\n01NewKernelFileCheck\n89SaveKernelModprobe\n98CheckRunlevel\n01CheckRunlevel\n01CheckLastResume\n01LockFileGet\n
+ AddResumeHook 97 ChangeFromTuxOnIceVT
+ RESUME_BITS=97ChangeFromTuxOnIceVT\n59RemountXFSBootRW\n89RestoreKernelModprobe\n01NoteLastResume\n01LockFilePut\n
+ USING_TUXONICE=1
+ return 0
+ return 0
+ return 0
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z Reboot ]
+ ProcessConfigOption Reboot no
+ local option
+ local params
+ echo Reboot
+ tr [A-Z] [a-z]
+ option=reboot
+ shift
+ params=no
+ PluginConfigOption reboot no
+ local i
+ ACPISleepConfigEnabler reboot no
+ [ reboot != useacpisleep ]
+ return 1
+ BackLightOptions reboot no
+ return 1
+ SplashOptions reboot no
+ return 1
+ ClockOptions reboot no
+ local param
+ return 1
+ DevicesOptions reboot no
+ return 1
+ DiskCacheOptions reboot no
+ return 1
+ FBSplashOptions reboot no
+ return 1
+ FilesystemsOptions reboot no
+ return 1
+ GaimOptions reboot no
+ return 1
+ GaleonOptions reboot no
+ return 1
+ GFXBrightnessOptions reboot no
+ return 1
+ GrubConfigOptions reboot no
+ return 1
+ HardwareTweaksOptions reboot no
+ return 1
+ LILOConfigOptions reboot no
+ return 1
+ LockOptions reboot no
+ return 1
+ MiscLaunchOptions reboot no
+ return 1
+ ModulesOptions reboot no
+ return 1
+ GentooModulesOptions reboot no
+ return 1
+ NetworkConfigOptions reboot no
+ local opt
+ opt=reboot
+ shift
+ return 1
+ NMOptions reboot no
+ return 1
+ PauseAudioOptions reboot no
+ return 1
+ PCMCIAOptions reboot no
+ return 1
+ ProgramsOptions reboot no
+ return 1
+ XFSBootConfigOptions reboot no
+ return 1
+ ServicesOptions reboot no
+ return 1
+ TuxOnIceConfigEnabler reboot no
+ echo TuxOnIceConfigEnabler: reboot; Using TuxOnIce is 1
TuxOnIceConfigEnabler: reboot; Using TuxOnIce is 1
+ [ reboot != usesuspend2 ]
+ [ reboot != useswsusp2 ]
+ [ reboot != usetuxonice ]
+ return 1
+ SylpheedClawsOptions reboot no
+ return 1
+ SysfsPowerStateConfigEnabler reboot no
+ [ reboot != usesysfspowerstate ]
+ return 1
+ USuspendConfigEnabler reboot no
+ return 1
+ VbetoolOptions reboot no
+ return 1
+ VideoDumpOptions reboot no
+ return 1
+ XHacksOptions reboot no
+ return 1
+ XStatusOptions reboot no
+ local foo
+ return 1
+ TuxOnIceConfigOptions reboot no
+ echo TuxOnIceConfigOptions: reboot no
TuxOnIceConfigOptions: reboot no
+ [ -z  ]
+ BoolIsOn reboot no
+ local val
+ echo no
+ tr [A-Z] [a-z]
+ val=no
+ [ no = on ]
+ [ no = off ]
+ [ no = true ]
+ [ no = false ]
+ [ no = yes ]
+ [ no = no ]
+ return 1
+ OPT_REBOOT=0
+ [ -z  ]
+ AddSuspendHook 98 TuxOnIceConfigSet
+ SUSPEND_BITS=98TuxOnIceConfigSet\n99DoTuxOnIce\n97ChangeToTuxOnIceVT\n10EnsureTuxOnIceCapable\n59RemountXFSBootRO\n01NewKernelFileCheck\n89SaveKernelModprobe\n98CheckRunlevel\n01CheckRunlevel\n01CheckLastResume\n01LockFileGet\n
+ TUXONICE_HOOKED=1
+ return 0
+ return 0
+ return 0
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z EnableEscape ]
+ ProcessConfigOption EnableEscape yes
+ local option
+ local params
+ echo EnableEscape
+ tr [A-Z] [a-z]
+ option=enableescape
+ shift
+ params=yes
+ PluginConfigOption enableescape yes
+ local i
+ ACPISleepConfigEnabler enableescape yes
+ [ enableescape != useacpisleep ]
+ return 1
+ BackLightOptions enableescape yes
+ return 1
+ SplashOptions enableescape yes
+ return 1
+ ClockOptions enableescape yes
+ local param
+ return 1
+ DevicesOptions enableescape yes
+ return 1
+ DiskCacheOptions enableescape yes
+ return 1
+ FBSplashOptions enableescape yes
+ return 1
+ FilesystemsOptions enableescape yes
+ return 1
+ GaimOptions enableescape yes
+ return 1
+ GaleonOptions enableescape yes
+ return 1
+ GFXBrightnessOptions enableescape yes
+ return 1
+ GrubConfigOptions enableescape yes
+ return 1
+ HardwareTweaksOptions enableescape yes
+ return 1
+ LILOConfigOptions enableescape yes
+ return 1
+ LockOptions enableescape yes
+ return 1
+ MiscLaunchOptions enableescape yes
+ return 1
+ ModulesOptions enableescape yes
+ return 1
+ GentooModulesOptions enableescape yes
+ return 1
+ NetworkConfigOptions enableescape yes
+ local opt
+ opt=enableescape
+ shift
+ return 1
+ NMOptions enableescape yes
+ return 1
+ PauseAudioOptions enableescape yes
+ return 1
+ PCMCIAOptions enableescape yes
+ return 1
+ ProgramsOptions enableescape yes
+ return 1
+ XFSBootConfigOptions enableescape yes
+ return 1
+ ServicesOptions enableescape yes
+ return 1
+ TuxOnIceConfigEnabler enableescape yes
+ echo TuxOnIceConfigEnabler: enableescape; Using TuxOnIce is 1
TuxOnIceConfigEnabler: enableescape; Using TuxOnIce is 1
+ [ enableescape != usesuspend2 ]
+ [ enableescape != useswsusp2 ]
+ [ enableescape != usetuxonice ]
+ return 1
+ SylpheedClawsOptions enableescape yes
+ return 1
+ SysfsPowerStateConfigEnabler enableescape yes
+ [ enableescape != usesysfspowerstate ]
+ return 1
+ USuspendConfigEnabler enableescape yes
+ return 1
+ VbetoolOptions enableescape yes
+ return 1
+ VideoDumpOptions enableescape yes
+ return 1
+ XHacksOptions enableescape yes
+ return 1
+ XStatusOptions enableescape yes
+ local foo
+ return 1
+ TuxOnIceConfigOptions enableescape yes
+ echo TuxOnIceConfigOptions: enableescape yes
TuxOnIceConfigOptions: enableescape yes
+ [ -z  ]
+ BoolIsOn enableescape yes
+ local val
+ echo yes
+ tr [A-Z] [a-z]
+ val=yes
+ [ yes = on ]
+ [ yes = off ]
+ [ yes = true ]
+ [ yes = false ]
+ [ yes = yes ]
+ return 0
+ OPT_ESCAPE=1
+ [ -z 1 ]
+ return 0
+ return 0
+ return 0
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z DefaultConsoleLevel ]
+ ProcessConfigOption DefaultConsoleLevel 1
+ local option
+ local params
+ echo DefaultConsoleLevel
+ tr [A-Z] [a-z]
+ option=defaultconsolelevel
+ shift
+ params=1
+ PluginConfigOption defaultconsolelevel 1
+ local i
+ ACPISleepConfigEnabler defaultconsolelevel 1
+ [ defaultconsolelevel != useacpisleep ]
+ return 1
+ BackLightOptions defaultconsolelevel 1
+ return 1
+ SplashOptions defaultconsolelevel 1
+ return 1
+ ClockOptions defaultconsolelevel 1
+ local param
+ return 1
+ DevicesOptions defaultconsolelevel 1
+ return 1
+ DiskCacheOptions defaultconsolelevel 1
+ return 1
+ FBSplashOptions defaultconsolelevel 1
+ return 1
+ FilesystemsOptions defaultconsolelevel 1
+ return 1
+ GaimOptions defaultconsolelevel 1
+ return 1
+ GaleonOptions defaultconsolelevel 1
+ return 1
+ GFXBrightnessOptions defaultconsolelevel 1
+ return 1
+ GrubConfigOptions defaultconsolelevel 1
+ return 1
+ HardwareTweaksOptions defaultconsolelevel 1
+ return 1
+ LILOConfigOptions defaultconsolelevel 1
+ return 1
+ LockOptions defaultconsolelevel 1
+ return 1
+ MiscLaunchOptions defaultconsolelevel 1
+ return 1
+ ModulesOptions defaultconsolelevel 1
+ return 1
+ GentooModulesOptions defaultconsolelevel 1
+ return 1
+ NetworkConfigOptions defaultconsolelevel 1
+ local opt
+ opt=defaultconsolelevel
+ shift
+ return 1
+ NMOptions defaultconsolelevel 1
+ return 1
+ PauseAudioOptions defaultconsolelevel 1
+ return 1
+ PCMCIAOptions defaultconsolelevel 1
+ return 1
+ ProgramsOptions defaultconsolelevel 1
+ return 1
+ XFSBootConfigOptions defaultconsolelevel 1
+ return 1
+ ServicesOptions defaultconsolelevel 1
+ return 1
+ TuxOnIceConfigEnabler defaultconsolelevel 1
+ echo TuxOnIceConfigEnabler: defaultconsolelevel; Using TuxOnIce is 1
TuxOnIceConfigEnabler: defaultconsolelevel; Using TuxOnIce is 1
+ [ defaultconsolelevel != usesuspend2 ]
+ [ defaultconsolelevel != useswsusp2 ]
+ [ defaultconsolelevel != usetuxonice ]
+ return 1
+ SylpheedClawsOptions defaultconsolelevel 1
+ return 1
+ SysfsPowerStateConfigEnabler defaultconsolelevel 1
+ [ defaultconsolelevel != usesysfspowerstate ]
+ return 1
+ USuspendConfigEnabler defaultconsolelevel 1
+ return 1
+ VbetoolOptions defaultconsolelevel 1
+ return 1
+ VideoDumpOptions defaultconsolelevel 1
+ return 1
+ XHacksOptions defaultconsolelevel 1
+ return 1
+ XStatusOptions defaultconsolelevel 1
+ local foo
+ return 1
+ TuxOnIceConfigOptions defaultconsolelevel 1
+ echo TuxOnIceConfigOptions: defaultconsolelevel 1
TuxOnIceConfigOptions: defaultconsolelevel 1
+ OPT_CONSOLELEVEL=1
+ [ -z 1 ]
+ return 0
+ return 0
+ return 0
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z Compressor ]
+ ProcessConfigOption Compressor lzf
+ local option
+ local params
+ echo Compressor
+ tr [A-Z] [a-z]
+ option=compressor
+ shift
+ params=lzf
+ PluginConfigOption compressor lzf
+ local i
+ ACPISleepConfigEnabler compressor lzf
+ [ compressor != useacpisleep ]
+ return 1
+ BackLightOptions compressor lzf
+ return 1
+ SplashOptions compressor lzf
+ return 1
+ ClockOptions compressor lzf
+ local param
+ return 1
+ DevicesOptions compressor lzf
+ return 1
+ DiskCacheOptions compressor lzf
+ return 1
+ FBSplashOptions compressor lzf
+ return 1
+ FilesystemsOptions compressor lzf
+ return 1
+ GaimOptions compressor lzf
+ return 1
+ GaleonOptions compressor lzf
+ return 1
+ GFXBrightnessOptions compressor lzf
+ return 1
+ GrubConfigOptions compressor lzf
+ return 1
+ HardwareTweaksOptions compressor lzf
+ return 1
+ LILOConfigOptions compressor lzf
+ return 1
+ LockOptions compressor lzf
+ return 1
+ MiscLaunchOptions compressor lzf
+ return 1
+ ModulesOptions compressor lzf
+ return 1
+ GentooModulesOptions compressor lzf
+ return 1
+ NetworkConfigOptions compressor lzf
+ local opt
+ opt=compressor
+ shift
+ return 1
+ NMOptions compressor lzf
+ return 1
+ PauseAudioOptions compressor lzf
+ return 1
+ PCMCIAOptions compressor lzf
+ return 1
+ ProgramsOptions compressor lzf
+ return 1
+ XFSBootConfigOptions compressor lzf
+ return 1
+ ServicesOptions compressor lzf
+ return 1
+ TuxOnIceConfigEnabler compressor lzf
+ echo TuxOnIceConfigEnabler: compressor; Using TuxOnIce is 1
TuxOnIceConfigEnabler: compressor; Using TuxOnIce is 1
+ [ compressor != usesuspend2 ]
+ [ compressor != useswsusp2 ]
+ [ compressor != usetuxonice ]
+ return 1
+ SylpheedClawsOptions compressor lzf
+ return 1
+ SysfsPowerStateConfigEnabler compressor lzf
+ [ compressor != usesysfspowerstate ]
+ return 1
+ USuspendConfigEnabler compressor lzf
+ return 1
+ VbetoolOptions compressor lzf
+ return 1
+ VideoDumpOptions compressor lzf
+ return 1
+ XHacksOptions compressor lzf
+ return 1
+ XStatusOptions compressor lzf
+ local foo
+ return 1
+ TuxOnIceConfigOptions compressor lzf
+ echo TuxOnIceConfigOptions: compressor lzf
TuxOnIceConfigOptions: compressor lzf
+ TUXONICE_COMPRESSOR=lzf
+ [ -z 1 ]
+ return 0
+ return 0
+ return 0
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z Encryptor ]
+ ProcessConfigOption Encryptor none
+ local option
+ local params
+ echo Encryptor
+ tr [A-Z] [a-z]
+ option=encryptor
+ shift
+ params=none
+ PluginConfigOption encryptor none
+ local i
+ ACPISleepConfigEnabler encryptor none
+ [ encryptor != useacpisleep ]
+ return 1
+ BackLightOptions encryptor none
+ return 1
+ SplashOptions encryptor none
+ return 1
+ ClockOptions encryptor none
+ local param
+ return 1
+ DevicesOptions encryptor none
+ return 1
+ DiskCacheOptions encryptor none
+ return 1
+ FBSplashOptions encryptor none
+ return 1
+ FilesystemsOptions encryptor none
+ return 1
+ GaimOptions encryptor none
+ return 1
+ GaleonOptions encryptor none
+ return 1
+ GFXBrightnessOptions encryptor none
+ return 1
+ GrubConfigOptions encryptor none
+ return 1
+ HardwareTweaksOptions encryptor none
+ return 1
+ LILOConfigOptions encryptor none
+ return 1
+ LockOptions encryptor none
+ return 1
+ MiscLaunchOptions encryptor none
+ return 1
+ ModulesOptions encryptor none
+ return 1
+ GentooModulesOptions encryptor none
+ return 1
+ NetworkConfigOptions encryptor none
+ local opt
+ opt=encryptor
+ shift
+ return 1
+ NMOptions encryptor none
+ return 1
+ PauseAudioOptions encryptor none
+ return 1
+ PCMCIAOptions encryptor none
+ return 1
+ ProgramsOptions encryptor none
+ return 1
+ XFSBootConfigOptions encryptor none
+ return 1
+ ServicesOptions encryptor none
+ return 1
+ TuxOnIceConfigEnabler encryptor none
+ echo TuxOnIceConfigEnabler: encryptor; Using TuxOnIce is 1
TuxOnIceConfigEnabler: encryptor; Using TuxOnIce is 1
+ [ encryptor != usesuspend2 ]
+ [ encryptor != useswsusp2 ]
+ [ encryptor != usetuxonice ]
+ return 1
+ SylpheedClawsOptions encryptor none
+ return 1
+ SysfsPowerStateConfigEnabler encryptor none
+ [ encryptor != usesysfspowerstate ]
+ return 1
+ USuspendConfigEnabler encryptor none
+ return 1
+ VbetoolOptions encryptor none
+ return 1
+ VideoDumpOptions encryptor none
+ return 1
+ XHacksOptions encryptor none
+ return 1
+ XStatusOptions encryptor none
+ local foo
+ return 1
+ TuxOnIceConfigOptions encryptor none
+ echo TuxOnIceConfigOptions: encryptor none
TuxOnIceConfigOptions: encryptor none
+ TUXONICE_ENCRYPTOR=none
+ [ -z 1 ]
+ return 0
+ return 0
+ return 0
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z FullSpeedCPU ]
+ ProcessConfigOption FullSpeedCPU yes
+ local option
+ local params
+ echo FullSpeedCPU
+ tr [A-Z] [a-z]
+ option=fullspeedcpu
+ shift
+ params=yes
+ PluginConfigOption fullspeedcpu yes
+ local i
+ ACPISleepConfigEnabler fullspeedcpu yes
+ [ fullspeedcpu != useacpisleep ]
+ return 1
+ BackLightOptions fullspeedcpu yes
+ return 1
+ SplashOptions fullspeedcpu yes
+ return 1
+ ClockOptions fullspeedcpu yes
+ local param
+ return 1
+ DevicesOptions fullspeedcpu yes
+ return 1
+ DiskCacheOptions fullspeedcpu yes
+ return 1
+ FBSplashOptions fullspeedcpu yes
+ return 1
+ FilesystemsOptions fullspeedcpu yes
+ return 1
+ GaimOptions fullspeedcpu yes
+ return 1
+ GaleonOptions fullspeedcpu yes
+ return 1
+ GFXBrightnessOptions fullspeedcpu yes
+ return 1
+ GrubConfigOptions fullspeedcpu yes
+ return 1
+ HardwareTweaksOptions fullspeedcpu yes
+ BoolIsOn fullspeedcpu yes
+ local val
+ echo yes
+ tr [A-Z] [a-z]
+ val=yes
+ [ yes = on ]
+ [ yes = off ]
+ [ yes = true ]
+ [ yes = false ]
+ [ yes = yes ]
+ return 0
+ [ -z  ]
+ AddSuspendHook 98 FullSpeedCPUSuspend
+ SUSPEND_BITS=98FullSpeedCPUSuspend\n98TuxOnIceConfigSet\n99DoTuxOnIce\n97ChangeToTuxOnIceVT\n10EnsureTuxOnIceCapable\n59RemountXFSBootRO\n01NewKernelFileCheck\n89SaveKernelModprobe\n98CheckRunlevel\n01CheckRunlevel\n01CheckLastResume\n01LockFileGet\n
+ AddResumeHook 98 FullSpeedCPUResume
+ RESUME_BITS=98FullSpeedCPUResume\n97ChangeFromTuxOnIceVT\n59RemountXFSBootRW\n89RestoreKernelModprobe\n01NoteLastResume\n01LockFilePut\n
+ FULLSPEEDCPU_HOOKED=1
+ return 0
+ return 0
+ return 0
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z Include ]
+ ProcessConfigOption Include common.conf
+ local option
+ local params
+ echo Include
+ tr [A-Z] [a-z]
+ option=include
+ shift
+ params=common.conf
+ vecho 3 hibernate: Including configuration from common.conf
+ local v
+ v=3
+ shift
+ [ x = x1 ]
+ [ 3 -le 0 ]
+ [ 3 -le 1 -a cat != cat ]
+ ReadConfigFile common.conf
+ local option params
+ local file_name
+ file_name=common.conf
+ [ ! -f common.conf ]
+ [  !=  ]
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ############################################################################## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ############################################################################## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z Verbosity ]
+ ProcessConfigOption Verbosity 0
+ local option
+ local params
+ echo Verbosity
+ tr [A-Z] [a-z]
+ option=verbosity
+ shift
+ params=0
+ [ -z  ]
+ EnsureNumeric verbosity 0
+ IsANumber 0
+ return 0
+ return 0
+ VERBOSITY=0
+ return 0
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z LogFile ]
+ ProcessConfigOption LogFile /var/log/hibernate.log
+ local option
+ local params
+ echo LogFile
+ tr [A-Z] [a-z]
+ option=logfile
+ shift
+ params=/var/log/hibernate.log
+ [ -z  ]
+ LOGFILE=/var/log/hibernate.log
+ return 0
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z LogVerbosity ]
+ ProcessConfigOption LogVerbosity 1
+ local option
+ local params
+ echo LogVerbosity
+ tr [A-Z] [a-z]
+ option=logverbosity
+ shift
+ params=1
+ EnsureNumeric logverbosity 1
+ IsANumber 1
+ return 0
+ return 0
+ LOG_VERBOSITY=1
+ return 0
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ############################################################################## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ############################################################################## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z SaveClock ]
+ ProcessConfigOption SaveClock restore-only
+ local option
+ local params
+ echo SaveClock
+ tr [A-Z] [a-z]
+ option=saveclock
+ shift
+ params=restore-only
+ PluginConfigOption saveclock restore-only
+ local i
+ ACPISleepConfigEnabler saveclock restore-only
+ [ saveclock != useacpisleep ]
+ return 1
+ BackLightOptions saveclock restore-only
+ return 1
+ SplashOptions saveclock restore-only
+ return 1
+ ClockOptions saveclock restore-only
+ local param
+ echo restore-only
+ tr [A-Z] [a-z]
+ param=restore-only
+ AddResumeHook 70 ClockRestore
+ RESUME_BITS=70ClockRestore\n98FullSpeedCPUResume\n97ChangeFromTuxOnIceVT\n59RemountXFSBootRW\n89RestoreKernelModprobe\n01NoteLastResume\n01LockFilePut\n
+ return 0
+ return 0
+ return 0
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z UnloadBlacklistedModules ]
+ ProcessConfigOption UnloadBlacklistedModules yes
+ local option
+ local params
+ echo UnloadBlacklistedModules
+ tr [A-Z] [a-z]
+ option=unloadblacklistedmodules
+ shift
+ params=yes
+ PluginConfigOption unloadblacklistedmodules yes
+ local i
+ ACPISleepConfigEnabler unloadblacklistedmodules yes
+ [ unloadblacklistedmodules != useacpisleep ]
+ return 1
+ BackLightOptions unloadblacklistedmodules yes
+ return 1
+ SplashOptions unloadblacklistedmodules yes
+ return 1
+ ClockOptions unloadblacklistedmodules yes
+ local param
+ return 1
+ DevicesOptions unloadblacklistedmodules yes
+ return 1
+ DiskCacheOptions unloadblacklistedmodules yes
+ return 1
+ FBSplashOptions unloadblacklistedmodules yes
+ return 1
+ FilesystemsOptions unloadblacklistedmodules yes
+ return 1
+ GaimOptions unloadblacklistedmodules yes
+ return 1
+ GaleonOptions unloadblacklistedmodules yes
+ return 1
+ GFXBrightnessOptions unloadblacklistedmodules yes
+ return 1
+ GrubConfigOptions unloadblacklistedmodules yes
+ return 1
+ HardwareTweaksOptions unloadblacklistedmodules yes
+ return 1
+ LILOConfigOptions unloadblacklistedmodules yes
+ return 1
+ LockOptions unloadblacklistedmodules yes
+ return 1
+ MiscLaunchOptions unloadblacklistedmodules yes
+ return 1
+ ModulesOptions unloadblacklistedmodules yes
+ BoolIsOn unloadblacklistedmodules yes
+ local val
+ echo yes
+ tr [A-Z] [a-z]
+ val=yes
+ [ yes = on ]
+ [ yes = off ]
+ [ yes = true ]
+ [ yes = false ]
+ [ yes = yes ]
+ return 0
+ MODULES_UNLOAD_BLACKLIST=1
+ AddSuspendHook 91 ModulesUnloadBlacklist
+ SUSPEND_BITS=91ModulesUnloadBlacklist\n98FullSpeedCPUSuspend\n98TuxOnIceConfigSet\n99DoTuxOnIce\n97ChangeToTuxOnIceVT\n10EnsureTuxOnIceCapable\n59RemountXFSBootRO\n01NewKernelFileCheck\n89SaveKernelModprobe\n98CheckRunlevel\n01CheckRunlevel\n01CheckLastResume\n01LockFileGet\n
+ return 0
+ return 0
+ return 0
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z LoadModules ]
+ ProcessConfigOption LoadModules auto
+ local option
+ local params
+ echo LoadModules
+ tr [A-Z] [a-z]
+ option=loadmodules
+ shift
+ params=auto
+ PluginConfigOption loadmodules auto
+ local i
+ ACPISleepConfigEnabler loadmodules auto
+ [ loadmodules != useacpisleep ]
+ return 1
+ BackLightOptions loadmodules auto
+ return 1
+ SplashOptions loadmodules auto
+ return 1
+ ClockOptions loadmodules auto
+ local param
+ return 1
+ DevicesOptions loadmodules auto
+ return 1
+ DiskCacheOptions loadmodules auto
+ return 1
+ FBSplashOptions loadmodules auto
+ return 1
+ FilesystemsOptions loadmodules auto
+ return 1
+ GaimOptions loadmodules auto
+ return 1
+ GaleonOptions loadmodules auto
+ return 1
+ GFXBrightnessOptions loadmodules auto
+ return 1
+ GrubConfigOptions loadmodules auto
+ return 1
+ HardwareTweaksOptions loadmodules auto
+ return 1
+ LILOConfigOptions loadmodules auto
+ return 1
+ LockOptions loadmodules auto
+ return 1
+ MiscLaunchOptions loadmodules auto
+ return 1
+ ModulesOptions loadmodules auto
+ [ -z  ]
+ AddResumeHook 90 ModulesLoad
+ RESUME_BITS=90ModulesLoad\n70ClockRestore\n98FullSpeedCPUResume\n97ChangeFromTuxOnIceVT\n59RemountXFSBootRW\n89RestoreKernelModprobe\n01NoteLastResume\n01LockFilePut\n
+ shift
+ MOD_LOAD= auto
+ return 0
+ return 0
+ return 0
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z SwitchToTextMode ]
+ ProcessConfigOption SwitchToTextMode yes
+ local option
+ local params
+ echo SwitchToTextMode
+ tr [A-Z] [a-z]
+ option=switchtotextmode
+ shift
+ params=yes
+ PluginConfigOption switchtotextmode yes
+ local i
+ ACPISleepConfigEnabler switchtotextmode yes
+ [ switchtotextmode != useacpisleep ]
+ return 1
+ BackLightOptions switchtotextmode yes
+ return 1
+ SplashOptions switchtotextmode yes
+ return 1
+ ClockOptions switchtotextmode yes
+ local param
+ return 1
+ DevicesOptions switchtotextmode yes
+ return 1
+ DiskCacheOptions switchtotextmode yes
+ return 1
+ FBSplashOptions switchtotextmode yes
+ return 1
+ FilesystemsOptions switchtotextmode yes
+ return 1
+ GaimOptions switchtotextmode yes
+ return 1
+ GaleonOptions switchtotextmode yes
+ return 1
+ GFXBrightnessOptions switchtotextmode yes
+ return 1
+ GrubConfigOptions switchtotextmode yes
+ return 1
+ HardwareTweaksOptions switchtotextmode yes
+ return 1
+ LILOConfigOptions switchtotextmode yes
+ return 1
+ LockOptions switchtotextmode yes
+ return 1
+ MiscLaunchOptions switchtotextmode yes
+ return 1
+ ModulesOptions switchtotextmode yes
+ return 1
+ GentooModulesOptions switchtotextmode yes
+ return 1
+ NetworkConfigOptions switchtotextmode yes
+ local opt
+ opt=switchtotextmode
+ shift
+ return 1
+ NMOptions switchtotextmode yes
+ return 1
+ PauseAudioOptions switchtotextmode yes
+ return 1
+ PCMCIAOptions switchtotextmode yes
+ return 1
+ ProgramsOptions switchtotextmode yes
+ return 1
+ XFSBootConfigOptions switchtotextmode yes
+ return 1
+ ServicesOptions switchtotextmode yes
+ return 1
+ TuxOnIceConfigEnabler switchtotextmode yes
+ echo TuxOnIceConfigEnabler: switchtotextmode; Using TuxOnIce is 1
TuxOnIceConfigEnabler: switchtotextmode; Using TuxOnIce is 1
+ [ switchtotextmode != usesuspend2 ]
+ [ switchtotextmode != useswsusp2 ]
+ [ switchtotextmode != usetuxonice ]
+ return 1
+ SylpheedClawsOptions switchtotextmode yes
+ return 1
+ SysfsPowerStateConfigEnabler switchtotextmode yes
+ [ switchtotextmode != usesysfspowerstate ]
+ return 1
+ USuspendConfigEnabler switchtotextmode yes
+ return 1
+ VbetoolOptions switchtotextmode yes
+ return 1
+ VideoDumpOptions switchtotextmode yes
+ return 1
+ XHacksOptions switchtotextmode yes
+ BoolIsOn switchtotextmode yes
+ local val
+ echo yes
+ tr [A-Z] [a-z]
+ val=yes
+ [ yes = on ]
+ [ yes = off ]
+ [ yes = true ]
+ [ yes = false ]
+ [ yes = yes ]
+ return 0
+ XHACKS_LEAVE_X=1
+ [ -z  ]
+ AddSuspendHook 11 XHacksSuspendHook1
+ SUSPEND_BITS=11XHacksSuspendHook1\n91ModulesUnloadBlacklist\n98FullSpeedCPUSuspend\n98TuxOnIceConfigSet\n99DoTuxOnIce\n97ChangeToTuxOnIceVT\n10EnsureTuxOnIceCapable\n59RemountXFSBootRO\n01NewKernelFileCheck\n89SaveKernelModprobe\n98CheckRunlevel\n01CheckRunlevel\n01CheckLastResume\n01LockFileGet\n
+ AddSuspendHook 95 XHacksSuspendHook2
+ SUSPEND_BITS=95XHacksSuspendHook2\n11XHacksSuspendHook1\n91ModulesUnloadBlacklist\n98FullSpeedCPUSuspend\n98TuxOnIceConfigSet\n99DoTuxOnIce\n97ChangeToTuxOnIceVT\n10EnsureTuxOnIceCapable\n59RemountXFSBootRO\n01NewKernelFileCheck\n89SaveKernelModprobe\n98CheckRunlevel\n01CheckRunlevel\n01CheckLastResume\n01LockFileGet\n
+ AddResumeHook 11 XHacksResumeHook1
+ RESUME_BITS=11XHacksResumeHook1\n90ModulesLoad\n70ClockRestore\n98FullSpeedCPUResume\n97ChangeFromTuxOnIceVT\n59RemountXFSBootRW\n89RestoreKernelModprobe\n01NoteLastResume\n01LockFilePut\n
+ AddResumeHook 85 XHacksResumeHook2
+ RESUME_BITS=85XHacksResumeHook2\n11XHacksResumeHook1\n90ModulesLoad\n70ClockRestore\n98FullSpeedCPUResume\n97ChangeFromTuxOnIceVT\n59RemountXFSBootRW\n89RestoreKernelModprobe\n01NoteLastResume\n01LockFilePut\n
+ XHACKS_HOOKED=1
+ return 0
+ return 0
+ return 0
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z  ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ### ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z ## ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z # ]
+ continue
+ true
+ read option params
+ [ 1 -ne 0 ]
+ [ -z  ]
+ break
+ return 0
+ return 0
+ true
+ read option params
+ [ 1 -ne 0 ]
+ [ -z  ]
+ break
+ return 0
+ NO_COMPLAIN_UNSUPPORTED=
+ return 0
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z TryMethod ]
+ ProcessConfigOption TryMethod disk.conf
+ local option
+ local params
+ echo TryMethod
+ tr [A-Z] [a-z]
+ option=trymethod
+ shift
+ params=disk.conf
+ [ -z TuxOnIce ]
+ return 0
+ true
+ read option params
+ [ 0 -ne 0 ]
+ [ -z TryMethod ]
+ ProcessConfigOption TryMethod ram.conf
+ local option
+ local params
+ echo TryMethod
+ tr [A-Z] [a-z]
+ option=trymethod
+ shift
+ params=ram.conf
+ [ -z TuxOnIce ]
+ return 0
+ true
+ read option params
+ [ 1 -ne 0 ]
+ [ -z  ]
+ break
+ return 0
+ [ -z TuxOnIce ]
+ ParseOptions
+ local opts
+ getopt -n hibernate -o Vhfksv:nqF:ngr::nnn -l help,force,kill,verbosity:,dry-run,config-file:,version,no-suspend,restore-grub,lock-console-as:,reboot::,no-suspend,bug-report,no-suspend,no-suspend --
+ opts= --
+ DoGetOpt --
+ local opt
+ local optdata
+ [ -n -- ]
+ opt=--
+ shift
+ [ -n  ]
+ [ -n /var/log/hibernate.log ]
+ LOGPIPE=tee -a -i /var/log/hibernate.log
+ [ -n  ]
+ [ 0 -ge 4 ]
+ date
+ echo Starting suspend at Tue Apr 29 16:20:37 EST 2008
+ tee -a -i /var/log/hibernate.log
+ EXIT_CODE=0
+ [ tee -a -i /var/log/hibernate.log = cat ]
+ [ -n  ]
+ trap  INT
+ exec
+ exec
+ DoWork
+ trap ctrlc_handler+ NT HUP
tee+ l -i /var/log/hibernate.log
+ local CHAIN_UP_TO
+ local bit
+ CHAIN_UP_TO=0
+ SortSuspendBits
+ /bin/echo -ne 95XHacksSuspendHook2\n11XHacksSuspendHook1\n91ModulesUnloadBlacklist\n98FullSpeedCPUSuspend\n98TuxOnIceConfigSet\n99DoTuxOnIce\n97ChangeToTuxOnIceVT\n10EnsureTuxOnIceCapable\n59RemountXFSBootRO\n01NewKernelFileCheck\n89SaveKernelModprobe\n98CheckRunlevel\n01CheckRunlevel\n01CheckLastResume\n01LockFileGet\n
+ sort -n
+ local new_CHAIN_UP_TO
+ awk BEGIN{print substr("01CheckLastResume", 1, 2)}
+ new_CHAIN_UP_TO=01
+ [ -n 01 ]
+ CHAIN_UP_TO=01
+ bit=CheckLastResume
+ vecho 1 hibernate: [01] Executing CheckLastResume ... 
+ local v
+ v=1
+ shift
+ [ x = x1 ]
+ [ 1 -le 0 ]
+ [ 1 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ echo hibernate: [01] Executing CheckLastResume ... 
+ tee -a -i /var/log/hibernate.log
+ [ -n  ]
+ CheckLastResume
+ [ -f /var/run/hibernate-last-resume ]
+ return 0
+ ret=0
+ [ 0 -ge 2 ]
+ [ 0 -gt 0 ]
+ [ -n  ]
+ local new_CHAIN_UP_TO
+ awk BEGIN{print substr("01CheckRunlevel", 1, 2)}
+ new_CHAIN_UP_TO=01
+ [ -n 01 ]
+ CHAIN_UP_TO=01
+ bit=CheckRunlevel
+ vecho 1 hibernate: [01] Executing CheckRunlevel ... 
+ local v
+ v=1
+ shift
+ [ x = x1 ]
+ [ 1 -le 0 ]
+ [ 1 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ echo hibernate: [01] Executing CheckRunlevel ... 
+ tee -a -i /var/log/hibernate.log
+ [ -n  ]
+ CheckRunlevel
+ [ -z  ]
+ /sbin/runlevel
+ awk {print $2}
+ RUNLEVEL=2
+ return 0
+ ret=0
+ [ 0 -ge 2 ]
+ [ 0 -gt 0 ]
+ [ -n  ]
+ local new_CHAIN_UP_TO
+ awk BEGIN{print substr("01LockFileGet", 1, 2)}
+ new_CHAIN_UP_TO=01
+ [ -n 01 ]
+ CHAIN_UP_TO=01
+ bit=LockFileGet
+ vecho 1 hibernate: [01] Executing LockFileGet ... 
+ local v
+ v=1
+ shift
+ [ x = x1 ]
+ [ 1 -le 0 ]
+ [ 1 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ echo hibernate: [01] Executing LockFileGet ... 
+ tee -a -i /var/log/hibernate.log
+ [ -n  ]
+ LockFileGet
+ local other_pid
+ [ -f /var/run/hibernate-script.pid ]
+ read other_pid
+ IsANumber 25198
+ return 0
+ [ -n 25198 ]
+ kill -0 25198
+ rm -f /var/run/hibernate-script.pid
+ echo 1980
+ LOCKFILE_IN_USE=1
+ return 0
+ ret=0
+ [ 0 -ge 2 ]
+ [ 0 -gt 0 ]
+ [ -n  ]
+ local new_CHAIN_UP_TO
+ awk BEGIN{print substr("01NewKernelFileCheck", 1, 2)}
+ new_CHAIN_UP_TO=01
+ [ -n 01 ]
+ CHAIN_UP_TO=01
+ bit=NewKernelFileCheck
+ vecho 1 hibernate: [01] Executing NewKernelFileCheck ... 
+ local v
+ v=1
+ shift
+ [ x = x1 ]
+ [ 1 -le 0 ]
+ [ 1 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ echo hibernate: [01] Executing NewKernelFileCheck ... 
+ tee -a -i /var/log/hibernate.log
+ [ -n  ]
+ NewKernelFileCheck
+ [ -f /var/run/suspend2-new-kernel ]
+ return 0
+ ret=0
+ [ 0 -ge 2 ]
+ [ 0 -gt 0 ]
+ [ -n  ]
+ local new_CHAIN_UP_TO
+ awk BEGIN{print substr("10EnsureTuxOnIceCapable", 1, 2)}
+ new_CHAIN_UP_TO=10
+ [ -n 10 ]
+ CHAIN_UP_TO=10
+ bit=EnsureTuxOnIceCapable
+ vecho 1 hibernate: [10] Executing EnsureTuxOnIceCapable ... 
+ local v
+ v=1
+ shift
+ [ x = x1 ]
+ [ 1 -le 0 ]
+ [ 1 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ echo hibernate: [10] Executing EnsureTuxOnIceCapable ... 
+ tee -a -i /var/log/hibernate.log
+ [ -n  ]
+ EnsureTuxOnIceCapable
+ local ver
+ [ -d /sys/power/tuxonice ]
+ [ -f /sys/power/tuxonice/activate ]
+ [ -f /sys/power/tuxonice/do_suspend ]
+ [ -f /sys/power/tuxonice/do_hibernate ]
+ [ ! -f /sys/power/tuxonice/version ]
+ TuxOnIceIsAtLeastVersion 33554535
+ awk BEGIN{FS="[^0-9]"}{print($1*16777216)+($2*65536)+($3*256)+$4} /sys/power/tuxonice/version
+ ver=50331648
+ [ 50331648 -ge 33554535 ]
+ return 0
+ [ x1 != x1 ]
+ [ -f /sys/power/tuxonice/resume2 ]
+ [ -f /sys/power/tuxonice/resume ]
+ RESUME2_FILE=resume
+ [ -n resume ]
+ [ -n  ]
+ read REPLY
+ [ -z swap:/dev/sda3 ]
+ return 0
+ ret=0
+ [ 0 -ge 2 ]
+ [ 0 -gt 0 ]
+ [ -n  ]
+ local new_CHAIN_UP_TO
+ awk BEGIN{print substr("11XHacksSuspendHook1", 1, 2)}
+ new_CHAIN_UP_TO=11
+ [ -n 11 ]
+ CHAIN_UP_TO=11
+ bit=XHacksSuspendHook1
+ vecho 1 hibernate: [11] Executing XHacksSuspendHook1 ... 
+ local v
+ v=1
+ shift
+ [ x = x1 ]
+ [ 1 -le 0 ]
+ [ 1 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ echo hibernate: [11] Executing XHacksSuspendHook1 ... 
+ tee -a -i /var/log/hibernate.log
+ [ -n  ]
+ XHacksSuspendHook1
+ [ x = x1 ]
+ [ x = x1 ]
+ [ -n  ]
+ return 0
+ ret=0
+ [ 0 -ge 2 ]
+ [ 0 -gt 0 ]
+ [ -n  ]
+ local new_CHAIN_UP_TO
+ awk BEGIN{print substr("59RemountXFSBootRO", 1, 2)}
+ new_CHAIN_UP_TO=59
+ [ -n 59 ]
+ CHAIN_UP_TO=59
+ bit=RemountXFSBootRO
+ vecho 1 hibernate: [59] Executing RemountXFSBootRO ... 
+ local v
+ v=1
+ shift
+ [ x = x1 ]
+ [ 1 -le 0 ]
+ [ 1 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ echo hibernate: [59] Executing RemountXFSBootRO ... 
+ tee -a -i /var/log/hibernate.log
+ [ -n  ]
+ RemountXFSBootRO
+ [  = 1 ]
+ ret=0
+ [ 0 -ge 2 ]
+ [ 0 -gt 0 ]
+ [ -n  ]
+ local new_CHAIN_UP_TO
+ awk BEGIN{print substr("89SaveKernelModprobe", 1, 2)}
+ new_CHAIN_UP_TO=89
+ [ -n 89 ]
+ CHAIN_UP_TO=89
+ bit=SaveKernelModprobe
+ vecho 1 hibernate: [89] Executing SaveKernelModprobe ... 
+ local v
+ v=1
+ shift
+ [ x = x1 ]
+ [ 1 -le 0 ]
+ [ 1 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ echo hibernate: [89] Executing SaveKernelModprobe ... 
+ tee -a -i /var/log/hibernate.log
+ [ -n  ]
+ SaveKernelModprobe
+ [ -n  ]
+ [ -r /proc/sys/kernel/modprobe ]
+ cat /proc/sys/kernel/modprobe
+ KERNEL_MODPROBE=/doesnt/exist
+ [ -n /doesnt/exist ]
+ vecho 3 Saved /proc/sys/kernel/modprobe is /doesnt/exist
+ local v
+ v=3
+ shift
+ [ x = x1 ]
+ [ 3 -le 0 ]
+ [ 3 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ echo /doesnt/exist
+ [ -r /proc/sys/kernel/hotplug ]
+ cat /proc/sys/kernel/hotplug
+ KERNEL_HOTPLUG=
+ [ -n  ]
+ return 0
+ ret=0
+ [ 0 -ge 2 ]
+ [ 0 -gt 0 ]
+ [ -n  ]
+ local new_CHAIN_UP_TO
+ awk BEGIN{print substr("91ModulesUnloadBlacklist", 1, 2)}
+ new_CHAIN_UP_TO=91
+ [ -n 91 ]
+ CHAIN_UP_TO=91
+ bit=ModulesUnloadBlacklist
+ vecho 1 hibernate: [91] Executing ModulesUnloadBlacklist ... 
+ local v
+ v=1
+ shift
+ [ x = x1 ]
+ [ 1 -le 0 ]
+ [ 1 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ echo hibernate: [91] Executing ModulesUnloadBlacklist ... 
+ tee -a -i /var/log/hibernate.log
+ [ -n  ]
+ ModulesUnloadBlacklist
+ [ x1 = x1 ]
+ CheckModuleSupport
+ [ -f /proc/modules ]
+ return 0
+ [ ! -r /etc/hibernate/blacklisted-modules ]
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3} /proc/sys/kernel/osrelease
+ local kver=132633
+ vecho 2 Unloading blacklisted modules listed /etc/hibernate/blacklisted-modules
+ local v
+ v=2
+ shift
+ [ x = x1 ]
+ [ 2 -le 0 ]
+ [ 2 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ local failedmods=
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n  ]
+ local deps
+ FindModuleDeps acx100
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ awk -v module=acx100 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ cat /proc/modules
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n  ]
+ local deps
+ FindModuleDeps acx_pci
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ awk -v module=acx_pci 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ cat /proc/modules
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n  ]
+ local deps
+ FindModuleDeps hsfmodem
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ awk -v module=hsfmodem 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ cat /proc/modules
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n  ]
+ local deps
+ FindModuleDeps prism54
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ cat /proc/modules
+ awk -v module=prism54 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.6.0	2.6.99 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.6.0 2.6.99
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.6.0 2.6.99 ]
+ echo 2.6.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132608
+ echo 2.6.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132707
+ shift 2
+ [ 132633 -ge 132608 ]
+ [ 132633 -le 132707 ]
+ return 0
+ local deps
+ FindModuleDeps bcm4400
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ cat /proc/modules
+ awk -v module=bcm4400 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.4.0	2.4.99	2.6.0	2.6.99 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.4.0 2.4.99 2.6.0 2.6.99
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.4.0 2.4.99 2.6.0 2.6.99 ]
+ echo 2.4.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132096
+ echo 2.4.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132195
+ shift 2
+ [ 132633 -ge 132096 ]
+ [ 132633 -le 132195 ]
+ [ -n 2.6.0 2.6.99 ]
+ echo 2.6.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132608
+ echo 2.6.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132707
+ shift 2
+ [ 132633 -ge 132608 ]
+ [ 132633 -le 132707 ]
+ return 0
+ local deps
+ FindModuleDeps emu10k1
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ awk -v module=emu10k1 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ cat /proc/modules
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.4.0	2.4.99	2.6.0	2.6.99 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.4.0 2.4.99 2.6.0 2.6.99
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.4.0 2.4.99 2.6.0 2.6.99 ]
+ echo 2.4.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132096
+ echo 2.4.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132195
+ shift 2
+ [ 132633 -ge 132096 ]
+ [ 132633 -le 132195 ]
+ [ -n 2.6.0 2.6.99 ]
+ echo 2.6.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132608
+ echo 2.6.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132707
+ shift 2
+ [ 132633 -ge 132608 ]
+ [ 132633 -le 132707 ]
+ return 0
+ local deps
+ FindModuleDeps forcedeth
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ awk -v module=forcedeth 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ cat /proc/modules
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ mod=ipw2100
+ use_mod_ver=1
+ [ -n 0.0	1.0.2 ]
+ [ -z 1 ]
+ local modver
+ modinfo ipw2100
+ sed -e s/^version:[ \t]\+[^0-9]*\(.*\)$/\1/;t;d
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ modver=
+ vecho 3 Module version for ipw2100 is 
+ local v
+ v=3
+ shift
+ [ x = x1 ]
+ [ 3 -le 0 ]
+ [ 3 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ [ -n  ]
+ local deps
+ FindModuleDeps ipw2100
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ awk -v module=ipw2100 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ cat /proc/modules
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ mod=ipw2200
+ use_mod_ver=1
+ [ -n 0.0	0.20 ]
+ [ -z 1 ]
+ local modver
+ modinfo ipw2200
+ sed -e s/^version:[ \t]\+[^0-9]*\(.*\)$/\1/;t;d
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ modver=
+ vecho 3 Module version for ipw2200 is 
+ local v
+ v=3
+ shift
+ [ x = x1 ]
+ [ 3 -le 0 ]
+ [ 3 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ [ -n  ]
+ local deps
+ FindModuleDeps ipw2200
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ awk -v module=ipw2200 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ cat /proc/modules
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.6.0	2.6.99 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.6.0 2.6.99
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.6.0 2.6.99 ]
+ echo 2.6.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132608
+ echo 2.6.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132707
+ shift 2
+ [ 132633 -ge 132608 ]
+ [ 132633 -le 132707 ]
+ return 0
+ local deps
+ FindModuleDeps natsemi
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ cat /proc/modules
+ awk -v module=natsemi 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.6.0	2.6.19 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.6.0 2.6.19
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.6.0 2.6.19 ]
+ echo 2.6.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132608
+ echo 2.6.19
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132627
+ shift 2
+ [ 132633 -ge 132608 ]
+ [ 132633 -le 132627 ]
+ [ -n  ]
+ return 1
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.4.0	2.4.99	2.6.0	2.6.99 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.4.0 2.4.99 2.6.0 2.6.99
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.4.0 2.4.99 2.6.0 2.6.99 ]
+ echo 2.4.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132096
+ echo 2.4.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132195
+ shift 2
+ [ 132633 -ge 132096 ]
+ [ 132633 -le 132195 ]
+ [ -n 2.6.0 2.6.99 ]
+ echo 2.6.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132608
+ echo 2.6.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132707
+ shift 2
+ [ 132633 -ge 132608 ]
+ [ 132633 -le 132707 ]
+ return 0
+ local deps
+ FindModuleDeps rt2400
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ cat /proc/modules
+ awk -v module=rt2400 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.6.0	2.6.14 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.6.0 2.6.14
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.6.0 2.6.14 ]
+ echo 2.6.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132608
+ echo 2.6.14
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132622
+ shift 2
+ [ 132633 -ge 132608 ]
+ [ 132633 -le 132622 ]
+ [ -n  ]
+ return 1
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.6.0	2.6.14 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.6.0 2.6.14
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.6.0 2.6.14 ]
+ echo 2.6.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132608
+ echo 2.6.14
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132622
+ shift 2
+ [ 132633 -ge 132608 ]
+ [ 132633 -le 132622 ]
+ [ -n  ]
+ return 1
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.6.0	2.6.14 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.6.0 2.6.14
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.6.0 2.6.14 ]
+ echo 2.6.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132608
+ echo 2.6.14
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132622
+ shift 2
+ [ 132633 -ge 132608 ]
+ [ 132633 -le 132622 ]
+ [ -n  ]
+ return 1
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.4.0	2.4.99 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.4.0 2.4.99
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.4.0 2.4.99 ]
+ echo 2.4.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132096
+ echo 2.4.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132195
+ shift 2
+ [ 132633 -ge 132096 ]
+ [ 132633 -le 132195 ]
+ [ -n  ]
+ return 1
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.4.0	2.4.99 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.4.0 2.4.99
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.4.0 2.4.99 ]
+ echo 2.4.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132096
+ echo 2.4.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132195
+ shift 2
+ [ 132633 -ge 132096 ]
+ [ 132633 -le 132195 ]
+ [ -n  ]
+ return 1
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.4.0	2.4.99 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.4.0 2.4.99
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.4.0 2.4.99 ]
+ echo 2.4.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132096
+ echo 2.4.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132195
+ shift 2
+ [ 132633 -ge 132096 ]
+ [ 132633 -le 132195 ]
+ [ -n  ]
+ return 1
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.6.0	2.6.99 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.6.0 2.6.99
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.6.0 2.6.99 ]
+ echo 2.6.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132608
+ echo 2.6.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132707
+ shift 2
+ [ 132633 -ge 132608 ]
+ [ 132633 -le 132707 ]
+ return 0
+ local deps
+ FindModuleDeps snd_ens1370
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ awk -v module=snd_ens1370 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ cat /proc/modules
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.6.0	2.6.99 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.6.0 2.6.99
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.6.0 2.6.99 ]
+ echo 2.6.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132608
+ echo 2.6.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132707
+ shift 2
+ [ 132633 -ge 132608 ]
+ [ 132633 -le 132707 ]
+ return 0
+ local deps
+ FindModuleDeps snd_ens1371
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ awk -v module=snd_ens1371 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ cat /proc/modules
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.6.0	2.6.99 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.6.0 2.6.99
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.6.0 2.6.99 ]
+ echo 2.6.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132608
+ echo 2.6.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132707
+ shift 2
+ [ 132633 -ge 132608 ]
+ [ 132633 -le 132707 ]
+ return 0
+ local deps
+ FindModuleDeps snd_maestro3
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ cat /proc/modules
+ awk -v module=snd_maestro3 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ mod=snd_bt_sco
+ use_mod_ver=1
+ [ -n 0.0	1.18 ]
+ [ -z 1 ]
+ local modver
+ modinfo snd_bt_sco
+ sed -e s/^version:[ \t]\+[^0-9]*\(.*\)$/\1/;t;d
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ modver=
+ vecho 3 Module version for snd_bt_sco is 
+ local v
+ v=3
+ shift
+ [ x = x1 ]
+ [ 3 -le 0 ]
+ [ 3 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ [ -n  ]
+ local deps
+ FindModuleDeps snd_bt_sco
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ cat /proc/modules
+ awk -v module=snd_bt_sco 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.6.0	2.6.99 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.6.0 2.6.99
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.6.0 2.6.99 ]
+ echo 2.6.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132608
+ echo 2.6.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132707
+ shift 2
+ [ 132633 -ge 132608 ]
+ [ 132633 -le 132707 ]
+ return 0
+ local deps
+ FindModuleDeps en1370
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ awk -v module=en1370 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ cat /proc/modules
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.6.0	2.6.99 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.6.0 2.6.99
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.6.0 2.6.99 ]
+ echo 2.6.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132608
+ echo 2.6.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132707
+ shift 2
+ [ 132633 -ge 132608 ]
+ [ 132633 -le 132707 ]
+ return 0
+ local deps
+ FindModuleDeps en1371
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ cat /proc/modules
+ awk -v module=en1371 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.6.0	2.6.8 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.6.0 2.6.8
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.6.0 2.6.8 ]
+ echo 2.6.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132608
+ echo 2.6.8
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132616
+ shift 2
+ [ 132633 -ge 132608 ]
+ [ 132633 -le 132616 ]
+ [ -n  ]
+ return 1
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.6.0	2.6.99 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.6.0 2.6.99
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.6.0 2.6.99 ]
+ echo 2.6.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132608
+ echo 2.6.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132707
+ shift 2
+ [ 132633 -ge 132608 ]
+ [ 132633 -le 132707 ]
+ return 0
+ local deps
+ FindModuleDeps via_rhine
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ cat /proc/modules
+ awk -v module=via_rhine 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.6.10	2.6.99 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.6.10 2.6.99
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.6.10 2.6.99 ]
+ echo 2.6.10
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132618
+ echo 2.6.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132707
+ shift 2
+ [ 132633 -ge 132618 ]
+ [ 132633 -le 132707 ]
+ return 0
+ local deps
+ FindModuleDeps i8042
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ awk -v module=i8042 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ cat /proc/modules
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.6.0	2.6.99 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.6.0 2.6.99
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.6.0 2.6.99 ]
+ echo 2.6.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132608
+ echo 2.6.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132707
+ shift 2
+ [ 132633 -ge 132608 ]
+ [ 132633 -le 132707 ]
+ return 0
+ local deps
+ FindModuleDeps intel_mch_agp
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ cat /proc/modules
+ awk -v module=intel_mch_agp 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.6.0	2.6.14 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.6.0 2.6.14
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.6.0 2.6.14 ]
+ echo 2.6.0
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132608
+ echo 2.6.14
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132622
+ shift 2
+ [ 132633 -ge 132608 ]
+ [ 132633 -le 132622 ]
+ [ -n  ]
+ return 1
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.6.9	2.6.22 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.6.9 2.6.22
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.6.9 2.6.22 ]
+ echo 2.6.9
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132617
+ echo 2.6.22
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132630
+ shift 2
+ [ 132633 -ge 132617 ]
+ [ 132633 -le 132630 ]
+ [ -n  ]
+ return 1
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n 2.6.12	2.6.99 ]
+ [ -z  ]
+ IsInVersionRange 132633 2.6.12 2.6.99
+ local kver
+ kver=132633
+ shift
+ local min_ver
+ local max_ver
+ [ -n 2.6.12 2.6.99 ]
+ echo 2.6.12
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ min_ver=132620
+ echo 2.6.99
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ max_ver=132707
+ shift 2
+ [ 132633 -ge 132620 ]
+ [ 132633 -le 132707 ]
+ return 0
+ local deps
+ FindModuleDeps speedstep_smi
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ awk -v module=speedstep_smi 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ cat /proc/modules
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ mod=ndiswrapper
+ use_mod_ver=1
+ [ -n 0.10    0.11 ]
+ [ -z 1 ]
+ local modver
+ modinfo ndiswrapper
+ sed -e s/^version:[ \t]\+[^0-9]*\(.*\)$/\1/;t;d
+ awk BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}
+ modver=
+ vecho 3 Module version for ndiswrapper is 
+ local v
+ v=3
+ shift
+ [ x = x1 ]
+ [ 3 -le 0 ]
+ [ 3 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ [ -n  ]
+ local deps
+ FindModuleDeps ndiswrapper
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ cat /proc/modules
+ awk -v module=ndiswrapper 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n  ]
+ local deps
+ FindModuleDeps ath_pci
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ cat /proc/modules
+ awk -v module=ath_pci 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n  ]
+ local deps
+ FindModuleDeps ipw3945
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ cat /proc/modules
+ awk -v module=ipw3945 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n  ]
+ local deps
+ FindModuleDeps iwl3945
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ cat /proc/modules
+ awk -v module=iwl3945 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n  ]
+ local deps
+ FindModuleDeps mac80211
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ awk -v module=mac80211 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ cat /proc/modules
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n  ]
+ local deps
+ FindModuleDeps sky2
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ awk -v module=sky2 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ cat /proc/modules
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 0 -ne 0 ]
+ [ -n  ]
+ local deps
+ FindModuleDeps uvcvideo
+ Get26ModulesFile
+ grep -q ^2\.4\. /proc/sys/kernel/osrelease
+ cat /proc/modules
+ awk -v module=uvcvideo 
function find_related_modules(mod, i, a) {
    modules[mod] = deps[mod]
    split(deps[mod], a, ",")
    for (i in a) {
        if (a[i] == "") continue
        if (!modules[a[i]]) {
            modules[a[i]] = deps[a[i]]
            find_related_modules(a[i])
        }
    }
}

function top_sort(modules, i, j) {
    changed = 1
    while (changed) {
        changed = 0
        for(i in modules) {
            if (modules[i] == "") {
                print i
                delete modules[i]
                for (j in modules) {
                    sub("^"i",", "", modules[j])
                    sub(","i",", ",", modules[j])
                }
                changed = 1
            }
        }
    }
}

BEGIN {
    have_module = 0
}

{
    if ($4 != "-") deps[$1] = $4
    if ($1 == module) have_module = 1
}

END {
    if (have_module == 1) {
        find_related_modules(module) # puts results into "modules" array
        top_sort(modules)
    }
}
    
+ deps=
+ [ -z  ]
+ continue
+ true
+ local mod vers use_mod_ver
+ use_mod_ver=
+ read mod vers
+ [ 1 -ne 0 ]
+ [ -z  ]
+ break
+ [ -z  ]
+ return 0
+ ret=0
+ [ 0 -ge 2 ]
+ [ 0 -gt 0 ]
+ [ -n  ]
+ local new_CHAIN_UP_TO
+ awk BEGIN{print substr("95XHacksSuspendHook2", 1, 2)}
+ new_CHAIN_UP_TO=95
+ [ -n 95 ]
+ CHAIN_UP_TO=95
+ bit=XHacksSuspendHook2
+ vecho 1 hibernate: [95] Executing XHacksSuspendHook2 ... 
+ local v
+ v=1
+ shift
+ [ x = x1 ]
+ [ 1 -le 0 ]
+ [ 1 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ echo hibernate: [95] Executing XHacksSuspendHook2 ... 
+ tee -a -i /var/log/hibernate.log
+ [ -n  ]
+ XHacksSuspendHook2
+ [ -z  ]
+ XHacksSuspend
+ [ x1 = x1 ]
+ command -v fgconsole
+ fgconsole
+ XHACKS_ORIGINAL_VT=7
+ [ x1 = x1 ]
+ local dest_vt
+ [ -z  ]
+ dest_vt=15
+ vecho 3 xhacks: changing console from 7 to 15
+ local v
+ v=3
+ shift
+ [ x = x1 ]
+ [ 3 -le 0 ]
+ [ 3 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ chvt 15
+ return 0
+ return 0
+ ret=0
+ [ 0 -ge 2 ]
+ [ 0 -gt 0 ]
+ [ -n  ]
+ local new_CHAIN_UP_TO
+ awk BEGIN{print substr("97ChangeToTuxOnIceVT", 1, 2)}
+ new_CHAIN_UP_TO=97
+ [ -n 97 ]
+ CHAIN_UP_TO=97
+ bit=ChangeToTuxOnIceVT
+ vecho 1 hibernate: [97] Executing ChangeToTuxOnIceVT ... 
+ local v
+ v=1
+ shift
+ [ x = x1 ]
+ [ 1 -le 0 ]
+ [ 1 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ tee -a -i /var/log/hibernate.log
+ echo hibernate: [97] Executing ChangeToTuxOnIceVT ... 
+ [ -n  ]
+ ChangeToTuxOnIceVT
+ echo ChangeToTuxOnIceVT
+ [ -n  ]
+ return 0
+ ret=0
+ [ 0 -ge 2 ]
+ [ 0 -gt 0 ]
+ [ -n  ]
+ local new_CHAIN_UP_TO
+ awk BEGIN{print substr("98CheckRunlevel", 1, 2)}
ChangeToTuxOnIceVT
+ new_CHAIN_UP_TO=98
+ [ -n 98 ]
+ CHAIN_UP_TO=98
+ bit=CheckRunlevel
+ vecho 1 hibernate: [98] Executing CheckRunlevel ... 
+ local v
+ v=1
+ shift
+ [ x = x1 ]
+ [ 1 -le 0 ]
+ [ 1 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ echo hibernate: [98] Executing CheckRunlevel ... 
+ tee -a -i /var/log/hibernate.log
+ [ -n  ]
+ CheckRunlevel
+ [ -z 2 ]
+ return 0
+ ret=0
+ [ 0 -ge 2 ]
+ [ 0 -gt 0 ]
+ [ -n  ]
+ local new_CHAIN_UP_TO
+ awk BEGIN{print substr("98FullSpeedCPUSuspend", 1, 2)}
+ new_CHAIN_UP_TO=98
+ [ -n 98 ]
+ CHAIN_UP_TO=98
+ bit=FullSpeedCPUSuspend
+ vecho 1 hibernate: [98] Executing FullSpeedCPUSuspend ... 
+ local v
+ v=1
+ shift
+ [ x = x1 ]
+ [ 1 -le 0 ]
+ [ 1 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ echo hibernate: [98] Executing FullSpeedCPUSuspend ... 
+ tee -a -i /var/log/hibernate.log
+ [ -n  ]
+ FullSpeedCPUSuspend
+ local cpu
+ mktemp /tmp/tmp.hibernate.XXXXXX
+ HW_FULLSPEEDCPU_RESTORER=/tmp/tmp.hibernate.Wv2525
+ local cpunum min_freq setspeed governor i
+ [ -d /sys/devices/system/cpu/cpu0/cpufreq ]
+ cpunum=0/cpufreq
+ cpunum=0
+ IsANumber 0
+ return 0
+ eval done_this=$hw_cpu_0_done
+ done_this=
+ [ x = xcpudone ]
+ cat /sys/devices/system/cpu/cpu0/cpufreq/affected_cpus
+ IsANumber 0
+ return 0
+ eval hw_cpu_0_done=cpudone
+ hw_cpu_0_done=cpudone
+ IsANumber 1
+ return 0
+ eval hw_cpu_1_done=cpudone
+ hw_cpu_1_done=cpudone
+ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
+ max_freq=2201000
+ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
+ min_freq=2201000
+ [ -f /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed ]
+ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
+ setspeed=<unsupported>
+ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+ governor=performance
+ cat
+ grep -q performance /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
+ echo performance
+ echo 2201000
+ vecho 2 Switched to performance, with min freq at 2201000
+ local v
+ v=2
+ shift
+ [ x = x1 ]
+ [ 2 -le 0 ]
+ [ 2 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ local cpunum min_freq setspeed governor i
+ [ -d /sys/devices/system/cpu/cpu1/cpufreq ]
+ cpunum=1/cpufreq
+ cpunum=1
+ IsANumber 1
+ return 0
+ eval done_this=$hw_cpu_1_done
+ done_this=cpudone
+ [ xcpudone = xcpudone ]
+ continue
+ return 0
+ ret=0
+ [ 0 -ge 2 ]
+ [ 0 -gt 0 ]
+ [ -n  ]
+ local new_CHAIN_UP_TO
+ awk BEGIN{print substr("98TuxOnIceConfigSet", 1, 2)}
+ new_CHAIN_UP_TO=98
+ [ -n 98 ]
+ CHAIN_UP_TO=98
+ bit=TuxOnIceConfigSet
+ vecho 1 hibernate: [98] Executing TuxOnIceConfigSet ... 
+ local v
+ v=1
+ shift
+ [ x = x1 ]
+ [ 1 -le 0 ]
+ [ 1 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ tee -a -i /var/log/hibernate.log
+ echo hibernate: [98] Executing TuxOnIceConfigSet ... 
+ [ -n  ]
+ TuxOnIceConfigSet
+ echo TuxOnIceConfigSet
TuxOnIceConfigSet
+ [ x = xnocache ]
+ [ -n  ]
+ [ -n 0 ]
+ [ -f /sys/power/tuxonice/reboot ]
+ echo 0
+ [ -n 1 ]
+ [ -f /sys/power/tuxonice/user_interface/enable_escape ]
+ echo 1
+ [ -n 1 ]
+ [ -f /sys/power/tuxonice/user_interface/default_console_level ]
+ echo 1
+ [ -n  ]
+ [ -n  ]
+ [ -n  ]
+ [ -n  ]
+ TuxOnIceSetupCryptoAPI
+ TuxOnIceIsAtLeastVersion 33622277
+ awk BEGIN{FS="[^0-9]"}{print($1*16777216)+($2*65536)+($3*256)+$4} /sys/power/tuxonice/version
+ ver=50331648
+ [ 50331648 -ge 33622277 ]
+ return 0
+ TUXONICE_MODULES_LOADED=
+ [ -n lzf ]
+ [ lzf != none ]
+ grep -q ^name.*: lzf$ /proc/crypto
+ [ lzf != none ]
+ compression_algorithm=lzf
+ disable_value=0
+ [ -f /sys/power/tuxonice/compression/disable_compression ]
+ [ -f /sys/power/tuxonice/compression/enabled ]
+ echo 1
+ [ -f /sys/power/tuxonice/compression/compressor ]
+ [ -f /sys/power/tuxonice/compression/algorithm ]
+ echo lzf
+ [ -n none ]
+ [ none != none ]
+ [ none != none ]
+ encryption_algorithm=
+ disable_value=1
+ [ -f /sys/power/tuxonice/disable_encryption ]
+ [ -f /sys/power/tuxonice/enabled ]
+ [ -f /sys/power/tuxonice/encryptor ]
+ [ -f /sys/power/tuxonice/algorithm ]
+ [ -n  ]
+ return 0
+ ret=0
+ [ 0 -ge 2 ]
+ [ 0 -gt 0 ]
+ [ -n  ]
+ local new_CHAIN_UP_TO
+ awk BEGIN{print substr("99DoTuxOnIce", 1, 2)}
+ new_CHAIN_UP_TO=99
+ [ -n 99 ]
+ CHAIN_UP_TO=99
+ bit=DoTuxOnIce
+ vecho 1 hibernate: [99] Executing DoTuxOnIce ... 
+ local v
+ v=1
+ shift
+ [ x = x1 ]
+ [ 1 -le 0 ]
+ [ 1 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ echo hibernate: [99] Executing DoTuxOnIce ... 
+ tee -a -i /var/log/hibernate.log
+ [ -n  ]
+ DoTuxOnIce
+ echo DoTuxOnIce
DoTuxOnIce
+ local error
+ [ -n  ]
+ [ -z  ]
+ vecho 1 hibernate: Activating TuxOnIce ...
+ local v
+ v=1
+ shift
+ [ x = x1 ]
+ [ 1 -le 0 ]
+ [ 1 -le 1 -a tee -a -i /var/log/hibernate.log != cat ]
+ echo hibernate: Activating TuxOnIce ...
+ tee -a -i /var/log/hibernate.log
+ SaveDmesg
+ mktemp /tmp/tmp.hibernate.XXXXXX
+ DMESG_ORIG=/tmp/tmp.hibernate.KW2548
+ dmesg
+ return 0
+ DoSuspend
+ [ -f /sys/power/tuxonice/do_hibernate ]
+ echo
+ read REPLY
+ echo 3
+ return 0
+ error=3
+ [ -n 3 ]
+ [ 3 -ne 0 ]
+ EXIT_CODE=4
+ PrintErrors 3
+ local code bit_num
+ code=3
+ [ -n 3 ]
+ [ 3 -eq 0 ]
+ ERROR_TEXT=hibernate: TuxOnIce reported the following errors:\n
+ [ -z 3 ]
/usr/local/sbin/hibernate: 1: arithmetic expression: expecting primary: "3&3"
+ eval
+ PluginTermination
+ local i
+ TuxOnIceTermination
+ return 0
+ return 0
+ date
+ tee -a -i /var/log/hibernate.log
+ echo Resumed at Tue Apr 29 16:20:48 EST 2008
+ exit 0
