summaryrefslogtreecommitdiff
path: root/ubiquity-hooks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 14:46:24 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 14:46:24 +0200
commit6c1a2cfab139bb4a61e7bcf5f4cafe3b7498f64e (patch)
tree333a05a0a341c98203688dc4d01589340eca951c /ubiquity-hooks
parenta4a7503df76005df67b006e1324004c808830c32 (diff)
downloadlive-boot-6c1a2cfab139bb4a61e7bcf5f4cafe3b7498f64e.tar.gz
live-boot-6c1a2cfab139bb4a61e7bcf5f4cafe3b7498f64e.zip
Adding casper 1.66+debian-1.
Diffstat (limited to 'ubiquity-hooks')
-rwxr-xr-xubiquity-hooks/30accessibility9
1 files changed, 5 insertions, 4 deletions
diff --git a/ubiquity-hooks/30accessibility b/ubiquity-hooks/30accessibility
index ab1c2e9..9fcfc26 100755
--- a/ubiquity-hooks/30accessibility
+++ b/ubiquity-hooks/30accessibility
@@ -4,10 +4,11 @@
PREREQ=""
DESCRIPTION="Configuring accessibility options..."
-USERNAME=$(db_get passwd/username)
+db_get passwd/username
+USERNAME="$RET"
gct() {
- chroot /target su $USERNAME -- gconftool-2 "$@"
+ chroot /target sudo -u "$USERNAME" gconftool-2 "$@"
}
for x in $(cat /proc/cmdline); do
@@ -21,8 +22,8 @@ for x in $(cat /proc/cmdline); do
gct -s -t string /apps/metacity/general/theme Atlanta
gct -s -t string /desktop/gnome/background/picture_filename ""
gct -s -t string /desktop/gnome/background/picture_options none
- gct "-s -t string /desktop/gnome/background/primary_color \#666666"
- gct "-s -t string /desktop/gnome/background/secondary_color \#7F7F7F"
+ gct -s -t string /desktop/gnome/background/primary_color \#666666
+ gct -s -t string /desktop/gnome/background/secondary_color \#7F7F7F
gct -s -t string /desktop/gnome/background/color_shading_type solid
gct -s -t int /desktop/gnome/peripherals/mouse/cursor_size 48
gct -s -t string /desktop/gnome/peripherals/mouse/cursor_theme whiteglass