summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-02-08 01:06:33 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:04 +0100
commit315bf6949d353d077382d89ffb98c40531fec940 (patch)
tree007869306b32aec236c1d24f624a41a2cd407441 /scripts
parent5311dd3d93b6e721f5f68a012c2e7142fd76aef4 (diff)
downloadlive-boot-315bf6949d353d077382d89ffb98c40531fec940.tar.gz
live-boot-315bf6949d353d077382d89ffb98c40531fec940.zip
Merging casper 1.156.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live-bottom/30accessibility11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/live-bottom/30accessibility b/scripts/live-bottom/30accessibility
index 3f88e2f..51780d2 100755
--- a/scripts/live-bottom/30accessibility
+++ b/scripts/live-bottom/30accessibility
@@ -47,6 +47,15 @@ gct ()
fi
}
+laptop_detect ()
+{
+ if chroot /root /usr/sbin/laptop-detect
+ 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
+ fi
+}
+
case ${ACCESS} in
access=v1)
# Lesser Visual Impairment
@@ -78,6 +87,7 @@ case ${ACCESS} in
echo "import orca.settings" >> /root/home/${USERNAME}/.orca/user-settings.py
echo "orca.settings.enableSpeech = False" >> /root/home/${USERNAME}/.orca/user-settings.py
echo "orca.settings.enableMagnifier = True" >> /root/home/${USERNAME}/.orca/user-settings.py
+ laptop_detect
chroot /root chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}/.orca
fi
;;
@@ -108,6 +118,7 @@ case ${ACCESS} in
echo "import orca.settings" >> /root/home/${USERNAME}/.orca/user-settings.py
echo "orca.settings.enableSpeech = False" >> /root/home/${USERNAME}/.orca/user-settings.py
echo "orca.settings.enableBraille = True" >> /root/home/${USERNAME}/.orca/user-settings.py
+ laptop_detect
chroot /root chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}/.orca
fi
;;