Adding casper 1.66+debian-1.
[live-boot-grml.git] / scripts / casper-bottom / 22gnome_panel_data
index 7bedd7a..5509ce1 100755 (executable)
@@ -21,14 +21,14 @@ esac
 log_begin_msg "$DESCRIPTION"
 
 if [ -x /root/usr/sbin/laptop-detect ]; then
-       if chroot /root /bin/sh -c /usr/sbin/laptop-detect; then
+       if chroot /root laptop-detect; then
            casper-reconfigure /root gnome-panel-data
        fi
 fi
 
 panel_version=$(chroot /root /usr/bin/dpkg-query -W --showformat='${Version}' gnome-panel-data 2>/dev/null) || panel_version=""
 if [ -n "$panel_version" ]; then
-    chroot /root su $USERNAME -- gconftool-2 -s -t bool /apps/panel/global/disable_lock_screen true
+    chroot /root sudo -u "$USERNAME" gconftool-2 -s -t bool /apps/panel/global/disable_lock_screen true
 fi
 
 log_end_msg