Lines 857-878
Link Here
|
857 |
} |
857 |
} |
858 |
|
858 |
|
859 |
suspend2_resume() { |
859 |
suspend2_resume() { |
860 |
if [ -d /proc/suspend2 ] || [ -d /sys/power/suspend2 ]; then |
860 |
if [ -d /proc/tuxonice ] || [ -d /sys/power/tuxonice ]; then |
861 |
local splash_theme |
861 |
local splash_theme |
862 |
|
862 |
|
863 |
if grep "splash=" /proc/cmdline > /dev/null 2>&1; then |
863 |
if grep "splash=" /proc/cmdline > /dev/null 2>&1; then |
864 |
splash_theme=`cat /proc/cmdline | sed 's/.*splash=/splash=/' | sed 's/ .*//' | sed 's/.*theme://' | sed 's/,.*//'` |
864 |
splash_theme=`cat /proc/cmdline | sed 's/.*splash=/splash=/' | sed 's/ .*//' | sed 's/.*theme://' | sed 's/,.*//'` |
865 |
fi |
865 |
fi |
866 |
|
866 |
|
867 |
local suspend2_userui_program="/sys/power/suspend2/user_interface/program" |
867 |
local suspend2_userui_program="/sys/power/tuxonice/user_interface/program" |
868 |
local suspend2_do_resume="/sys/power/suspend2/do_resume" |
868 |
local suspend2_do_resume="/sys/power/tuxonice/do_resume" |
869 |
|
869 |
|
870 |
# |
870 |
# |
871 |
# Backward compatibility |
871 |
# Backward compatibility |
872 |
# |
872 |
# |
873 |
if [ -e /proc/suspend2 ]; then |
873 |
if [ -e /proc/tuxonice ]; then |
874 |
suspend2_userui_program="/proc/suspend2/userui_program" |
874 |
suspend2_userui_program="/proc/tuxonice/userui_program" |
875 |
suspend2_do_resume="/proc/suspend2/do_resume" |
875 |
suspend2_do_resume="/proc/tuxonice/do_resume" |
876 |
fi |
876 |
fi |
877 |
|
877 |
|
878 |
modules_scan suspend2 |
878 |
modules_scan suspend2 |