diff options
| author | Daniel Baumann <daniel@debian.org> | 2007-09-23 14:46:22 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2007-09-23 14:46:22 +0200 |
| commit | a7e62470dcdcd93501d9f54a96ca45d267ad1fe5 (patch) | |
| tree | a0b23f27867323956e9383a0eb04aafce9e3d4d0 /ubiquity-hooks/30accessibility | |
| parent | 4a0b1ba4d428c623d14bae7f0db85c80abb0da0a (diff) | |
| download | live-boot-a7e62470dcdcd93501d9f54a96ca45d267ad1fe5.tar.gz live-boot-a7e62470dcdcd93501d9f54a96ca45d267ad1fe5.zip | |
Adding casper 1.61+debian-1.
Diffstat (limited to 'ubiquity-hooks/30accessibility')
| -rwxr-xr-x | ubiquity-hooks/30accessibility | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/ubiquity-hooks/30accessibility b/ubiquity-hooks/30accessibility new file mode 100755 index 0000000..4d871fd --- /dev/null +++ b/ubiquity-hooks/30accessibility @@ -0,0 +1,67 @@ +#!/bin/sh + +. /usr/share/debconf/confmodule + +PREREQ="" +DESCRIPTION="Configuring accessibility options..." +USERNAME=$(db_get passwd/username) + +gct() { + chroot /root su $USERNAME -- gconftool-2 "$@" +} + +for x in $(cat /proc/cmdline); do + case $x in + # Lesser Visual Impairment + access=v1) + gct -s -t string /desktop/gnome/interface/gtk_theme HighContrastLargePrint + gct -s -t string /desktop/gnome/interface/icon_theme HighContrast + gct -s -t string /desktop/gnome/interface/monospace_font_name "monospace 18" + gct -s -t string /desktop/gnome/interface/font_name "sans 18" + 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/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 + ;; + # Moderate Visual Impairment + access=v2) + gct -s -t bool /desktop/gnome/interface/accessibility true + gct -s -t list --list-type=string /desktop/gnome/accessibility/startup/exec_ats [gnopernicus] + gct -s -t bool /apps/gnopernicus/srcore/mag_active true + gct -s -t bool /apps/gnopernicus/srcore/sp_active false + ;; + # Blindness + access=v3) + gct -s -t bool /desktop/gnome/sound/enable_esd false + gct -s -t bool /desktop/gnome/interface/accessibility true + gct -s -t list --list-type=string /desktop/gnome/accessibility/startup/exec_ats [gnopernicus] + gct -s -t bool /apps/gnopernicus/srcore/sp_active true + gct -s -t bool /apps/gnopernicus/srcore/mag_active false + ;; + # Minor Motor Difficulties + access=m1) + gct -s -t bool /desktop/gnome/accessibility/keyboard/enable true + gct -s -t bool /desktop/gnome/accessibility/keyboard/mousekeys_enable true + gct -s -t bool /desktop/gnome/accessibility/keyboard/stickykeys_enable true + gct -s -t bool /desktop/gnome/accessibility/keyboard/stickykeys_modifier_beep true + gct -s -t bool /desktop/accessibility/gnome/keyboard/stickykeys_two_key_off false + gct -s -t bool /desktop/gnome/peripherals/keyboard/repeat true + gct -s -t int /desktop/gnome/peripherals/keyboard/delay 700 + gct -s -t int /desktop/gnome/peripherals/keyboard/rate 10 + ;; + # Motor Difficulties - pointing devices + access=m2) + gct -s -t bool /desktop/gnome/accessibility/keyboard/enable true + gct -s -t bool /desktop/gnome/accessibility/keyboard/stickykeys_enable true + gct -s -t bool /desktop/gnome/accessibility/keyboard/stickykeys_modifier_beep false + gct -s -t bool /desktop/accessibility/gnome/keyboard/stickykeys_two_key_off false + gct -s -t bool /desktop/gnome/interface/accessibility true + gct -s -t list --list-type=string /desktop/gnome/accessibility/startup/exec_ats gok + ;; + esac +done +log_end_msg |
