summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-10-26 13:14:31 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:06 +0100
commit9a4b1e916f10c04e516b4801ea7a7995d6ddcc11 (patch)
tree396551e7bf774d5fea87fa3f39f2780bc08cb693 /scripts
parent5020118e6c6744ef26f01dab015295c7baadecaa (diff)
downloadlive-boot-9a4b1e916f10c04e516b4801ea7a7995d6ddcc11.tar.gz
live-boot-9a4b1e916f10c04e516b4801ea7a7995d6ddcc11.zip
Merging casper 1.158.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live-bottom/30accessibility11
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/live-bottom/30accessibility b/scripts/live-bottom/30accessibility
index 3ff3fda..90312f6 100755
--- a/scripts/live-bottom/30accessibility
+++ b/scripts/live-bottom/30accessibility
@@ -49,10 +49,14 @@ gct ()
laptop_detect ()
{
- if chroot /root /usr/sbin/laptop-detect
+ if [ -x /root/usr/bin/orca ]
then
- echo "orca.settings.orcaModifierKeys = orca.settings.LAPTOP_MODIFIER_KEYS" >> /root/home/$USERNAME/.orca/user-settings.py
- echo "orca.settings.keyboardLayout = orca.settings.GENERAL_KEYBOARD_LAYOUT_LAPTOP" >> /root/home/$USERNAME/.orca/user-settings.py
+ if chroot /root /usr/sbin/laptop-detect
+ then
+ mkdir -p /root/home/$USERNAME/.orca
+ echo "orca.settings.orcaModifierKeys = orca.settings.LAPTOP_MODIFIER_KEYS" >> /root/home/$USERNAME/.orca/user-settings.py
+ echo "orca.settings.keyboardLayout = orca.settings.GENERAL_KEYBOARD_LAYOUT_LAPTOP" >> /root/home/$USERNAME/.orca/user-settings.py
+ fi
fi
}
@@ -121,6 +125,7 @@ case ${ACCESS} in
gct -s -t string /desktop/gnome/applications/window_manager/default /usr/bin/metacity
remove_applet fast_user_switch
+ laptop_detect
;;
braille=ask)