summaryrefslogtreecommitdiff
path: root/scripts/casper-bottom/32disable_hibernation
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/casper-bottom/32disable_hibernation')
-rwxr-xr-xscripts/casper-bottom/32disable_hibernation2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/casper-bottom/32disable_hibernation b/scripts/casper-bottom/32disable_hibernation
index 7b7d976..badcef6 100755
--- a/scripts/casper-bottom/32disable_hibernation
+++ b/scripts/casper-bottom/32disable_hibernation
@@ -24,7 +24,7 @@ log_begin_msg "$DESCRIPTION"
gpm_version=$(chroot /root /usr/bin/dpkg-query -W --showformat='${Version}' gnome-power-manager 2>/dev/null) || panel_version=""
if [ -n "$gpm_version" ]; then
casper-reconfigure /root gnome-power-manager
- chroot /root su $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_hibernate false
fi
if [ -f /root/usr/share/kubuntu-default-settings/kde-profile/default/share/config/kcmlaptoprc ]; then