projects
/
live-boot-grml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8144f95
)
Optimizing gnome-panel-data bottom script by leaving out the stupid things.
author
Daniel Baumann
<daniel@debian.org>
Thu, 6 Aug 2009 18:32:02 +0000
(20:32 +0200)
committer
Daniel Baumann
<daniel@debian.org>
Wed, 9 Mar 2011 16:48:05 +0000
(17:48 +0100)
scripts/live-bottom/22gnome_panel_data
patch
|
blob
|
history
diff --git
a/scripts/live-bottom/22gnome_panel_data
b/scripts/live-bottom/22gnome_panel_data
index
9d2bb2f
..
8f24bf4
100755
(executable)
--- a/
scripts/live-bottom/22gnome_panel_data
+++ b/
scripts/live-bottom/22gnome_panel_data
@@
-31,17
+31,12
@@
log_begin_msg "Configuring gnome-panel-data"
# live-initramfs script
# live-initramfs script
-if
[ -x /root/usr/sbin/laptop-detect ]
+if
chroot /root laptop-detect > /dev/null 2>&1
then
then
- if chroot /root laptop-detect
- then
- live-reconfigure /root gnome-panel-data
- fi
+ live-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}" ] && [ -n "${USERNAME}" ]
+if [ -n "${USERNAME}" ]
then
chroot /root sudo -u "${USERNAME}" gconftool-2 -s -t bool /apps/panel/global/disable_lock_screen true
fi
then
chroot /root sudo -u "${USERNAME}" gconftool-2 -s -t bool /apps/panel/global/disable_lock_screen true
fi