diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-10-05 09:27:25 -0500 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-10-05 09:27:25 -0500 |
commit | f90faf9293b1dddba7fe6da2a22398e8b84e51cc (patch) | |
tree | b92b5ae18456402007b7be7a38d3ab25df72ff3d /pm | |
parent | 806df338c05a972cb53de1c372e829f9f61fedd3 (diff) |
Fix incomplete renaming of _METHOD to _MODULE
Diffstat (limited to 'pm')
-rwxr-xr-x | pm/module.d/tuxonice | 4 | ||||
-rwxr-xr-x | pm/module.d/uswsusp | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/pm/module.d/tuxonice b/pm/module.d/tuxonice index f4e3de9..3db8cbe 100755 --- a/pm/module.d/tuxonice +++ b/pm/module.d/tuxonice @@ -13,7 +13,7 @@ done if [ -z "$HIBERNATE_MODULE" -a -n "$TUXONICE_LOC" ] && \ [ -f "${TUXONICE_LOC}/do_hibernate" ]; then - HIBERNATE_METHOD="tuxonice" + HIBERNATE_MODULE="tuxonice" do_hibernate() { echo 5 > "${TUXONICE_LOC}/powerdown_method" @@ -24,7 +24,7 @@ fi if [ -z "$SUSPEND_HYBRID_MODULE" -a -n "$TUXONICE_LOC" ] && \ grep -q mem /sys/power/state && \ [ -f "${TUXONICE_LOC}/do_hibernate" ]; then - SUSPEND_HYBRID_METHOD="tuxonice" + SUSPEND_HYBRID_MODULE="tuxonice" do_suspend_hybrid() { echo 3 >"${TUXONICE_LOC}/powerdown_method" diff --git a/pm/module.d/uswsusp b/pm/module.d/uswsusp index 1bb1e68..9da30c9 100755 --- a/pm/module.d/uswsusp +++ b/pm/module.d/uswsusp @@ -52,10 +52,10 @@ uswsusp_help() echo " --quirk-none" } -if [ -z "$SUSPEND_METHOD" ] && command_exists s2ram && \ +if [ -z "$SUSPEND_MODULE" ] && command_exists s2ram && \ ( grep -q mem /sys/power/state || \ ( [ -c /dev/pmu ] && pm-pmu --check; ); ); then - SUSPEND_METHOD="uswsusp" + SUSPEND_MODULE="uswsusp" do_suspend() { uswsusp_get_quirks @@ -67,23 +67,23 @@ if [ -z "$SUSPEND_METHOD" ] && command_exists s2ram && \ fi fi -if [ -z "$HIBERNATE_METHOD" ] && \ +if [ -z "$HIBERNATE_MODULE" ] && \ [ -f /sys/power/disk ] && \ grep -q disk /sys/power/state && \ [ -c /dev/snapshot ] && command_exists s2disk; then - HIBERNATE_METHOD="uswsusp" + HIBERNATE_MODULE="uswsusp" do_hibernate() { s2disk } fi -if [ -z "$SUSPEND_HYBRID_METHOD" ] && +if [ -z "$SUSPEND_HYBRID_MODULE" ] && grep -q mem /sys/power/state && \ command_exists s2both && \ check_hibernate; then - SUSPEND_HYBRID_METHOD="uswsusp" + SUSPEND_HYBRID_MODULE="uswsusp" do_suspend_hybrid() { uswsusp_get_quirks |