Author: alexander
Date: 2006-06-06 01:32:14 -0600 (Tue, 06 Jun 2006)
New Revision: 1580

Added:
   trunk/packages/livecd-bootscripts/brltty-restart
Modified:
   trunk/packages/livecd-bootscripts/Makefile
   trunk/packages/livecd-bootscripts/brltty
Log:
brltty needs restarting after changing the screen font
in order to be useful in non-English locales


Modified: trunk/packages/livecd-bootscripts/Makefile
===================================================================
--- trunk/packages/livecd-bootscripts/Makefile  2006-06-06 04:02:23 UTC (rev 
1579)
+++ trunk/packages/livecd-bootscripts/Makefile  2006-06-06 07:32:14 UTC (rev 
1580)
@@ -3,7 +3,7 @@
 
 # Targets
 
-SCRIPTS= customize clkconf langconf brltty
+SCRIPTS= customize clkconf langconf brltty brltty-restart
 DATA= font.dat font-errors.dat lang.dat
 
 include $(ROOT)/scripts/functions
@@ -25,6 +25,8 @@
        ln -sf ../init.d/brltty /etc/rc.d/rcsysinit.d/S11brltty
        ln -sf ../init.d/clkconf /etc/rc.d/rcsysinit.d/S59clkconf
        ln -sf ../init.d/langconf /etc/rc.d/rcsysinit.d/S69langconf
+       # brltty has to be restarted in order to see the font change
+       ln -sf ../init.d/brltty-restart /etc/rc.d/rcsysinit.d/S71brltty-restart
 
 clean:
 

Modified: trunk/packages/livecd-bootscripts/brltty
===================================================================
--- trunk/packages/livecd-bootscripts/brltty    2006-06-06 04:02:23 UTC (rev 
1579)
+++ trunk/packages/livecd-bootscripts/brltty    2006-06-06 07:32:14 UTC (rev 
1580)
@@ -2,8 +2,10 @@
 
 # this script runs before "console",
 # thus translated error messages are not allowed
+# but a UTF-8 based locale is required for testing
+# the remote-X braille emulator (not on this CD)
 
-LC_ALL=C
+LC_ALL=en_US.UTF-8
 export LC_ALL
 
 . /etc/sysconfig/rc

Added: trunk/packages/livecd-bootscripts/brltty-restart
===================================================================
--- trunk/packages/livecd-bootscripts/brltty-restart                            
(rev 0)
+++ trunk/packages/livecd-bootscripts/brltty-restart    2006-06-06 07:32:14 UTC 
(rev 1580)
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+LC_ALL=en_US.UTF-8
+export LC_ALL
+
+. /etc/sysconfig/rc
+. ${rc_functions}
+
+case "${1}" in
+       start)
+               if [ ! -z "$brltty" ] ; then
+                 boot_mesg "Restarting brltty..."
+                 killproc /usr/bin/brltty >/dev/null 2>&1
+                 loadproc /usr/bin/brltty
+                 evaluate_retval
+               fi
+               ;;
+       *)
+               echo "Usage: ${0} {start}"
+               exit 1
+               ;;
+esac

-- 
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to