Synchronise with Debian's version 1.157.3-1
[live-initramfs-grml.git] / scripts / live-bottom / 22gnome_panel_data
1 #!/bin/sh
2
3 #set -e
4
5 # initramfs-tools header
6
7 PREREQ=""
8
9 prereqs()
10 {
11         echo "${PREREQ}"
12 }
13
14 case "${1}" in
15         prereqs)
16                 prereqs
17                 exit 0
18                 ;;
19 esac
20
21 # live-initramfs header
22
23 if [ ! -e /root/var/lib/dpkg/info/gnome-panel-data.list ] || [ -n "${NOGNOMEPANEL}" ]
24 then
25         exit 0
26 fi
27
28 . /scripts/live-functions
29
30 log_begin_msg "Configuring gnome-panel-data"
31
32 # live-initramfs script
33
34 if chroot /root laptop-detect > /dev/null 2>&1
35 then
36         live-reconfigure /root gnome-panel-data
37 fi
38
39 if [ -n "${USERNAME}" ]
40 then
41         chroot /root sudo -u "${USERNAME}" gconftool-2 -s -t bool /apps/panel/global/disable_lock_screen true
42 fi
43
44 log_end_msg