diff options
Diffstat (limited to 'scripts/live-bottom/32disable_hibernation')
| -rwxr-xr-x | scripts/live-bottom/32disable_hibernation | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/live-bottom/32disable_hibernation b/scripts/live-bottom/32disable_hibernation index 708db5c..f77c668 100755 --- a/scripts/live-bottom/32disable_hibernation +++ b/scripts/live-bottom/32disable_hibernation @@ -36,13 +36,14 @@ gpm_version=$(chroot /root /usr/bin/dpkg-query -W --showformat='${Version}' gnom if [ -n "${gpm_version}" ] then #live-reconfigure /root gnome-power-manager + # Gnome < 2.20 chroot /root sudo -u "${USERNAME}" gconftool-2 -s -t bool /apps/gnome-power-manager/can_hibernate false - chroot /root sudo -u "${USERNAME}" gconftool-2 -s -t bool /apps/gnome-power-manager/can_suspend false + # Gnome >= 2.20 + chroot /root sudo -u "${USERNAME}" gconftool-2 -s -t bool /apps/gnome-power-manager/general/can_hibernate false fi if [ -d /root/usr/share/kubuntu-default-settings/kde-profile/default/share/config ] then - echo "disableSuspend=1" >> /root/usr/share/kubuntu-default-settings/kde-profile/default/share/config/power-managerrc echo "disableHibernate=1" >> /root/usr/share/kubuntu-default-settings/kde-profile/default/share/config/power-managerrc fi |
