[SCM] live-initramfs branch, master, updated. 1.157.4-1-12-g4527ba1

Daniel Baumann daniel at debian.org
Mon Oct 26 12:15:42 UTC 2009


The following commit has been merged in the master branch:
commit 4527ba1d8ff10b8e6dc9848aea67c4ead86e95e7
Author: Daniel Baumann <daniel at debian.org>
Date:   Mon Oct 26 13:14:31 2009 +0100

    Merging casper 1.158.

diff --git a/docs/ChangeLog.casper b/docs/ChangeLog.casper
index 31d5e92..d604bc5 100644
--- a/docs/ChangeLog.casper
+++ b/docs/ChangeLog.casper
@@ -1,3 +1,10 @@
+casper (1.158) jaunty; urgency=low
+
+  * scripts/casper-bottom/30accessibility && ubiquity-hooks/30accessibility:
+    - use laptop_detect function in blindness profile as well
+
+ -- Luke Yelavich <themuso at ubuntu.com>  Mon, 09 Mar 2009 14:07:17 +1100
+
 casper (1.157) jaunty; urgency=low
 
   [ Emmet Hikory ]
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)

-- 
live-initramfs



More information about the debian-live-changes mailing list