blob: ff3ec811d6b9f160279c165dd92236d5d2c8c465 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/bin/sh
PREREQ=""
DESCRIPTION="Configuring screensaver..."
. /scripts/functions
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
log_begin_msg "$DESCRIPTION"
gnome_screensaver_version=$(chroot /root dpkg-query -W --showformat='${Version}' gnome-screensaver 2>/dev/null) || gnome_screensaver_version=""
if [ "${BUILD_SYSTEM}" == "Ubuntu" ]; then
gnome_screensaver_lock="/apps/gnome-screensaver/lock"
else
gnome_screensaver_lock="/apps/gnome-screensaver/lock_enabled"
fi
if [ -n "$gnome_screensaver_version" ]; then
chroot /root sudo -u "$USERNAME" gconftool-2 -t bool -s "${gnome_screensaver_lock}" false
fi
log_end_msg
|