Re-add simplifed support for brltty.
authorUlrich Dangel <mru@grml.org>
Fri, 30 Dec 2011 15:24:21 +0000 (16:24 +0100)
committerUlrich Dangel <mru@grml.org>
Fri, 30 Dec 2011 15:24:21 +0000 (16:24 +0100)
If a brltty option is specified at the commandline run brltty.sh
brltty reads /proc/cmdline itself so there is no need for running brltty with
the specified bootoptions.

http://mielke.cc/brltty/guidelines.html documents the boot option.

autoconfig
autoconfig.functions
grml-autoconfig

index 5e9b10c..2e10328 100644 (file)
@@ -52,6 +52,7 @@ CONFIG_BLANKING='yes'         # check for bootoption noblank to disable console
 CONFIG_CONFIG='yes'           # do we want config unpacking to work?
 CONFIG_CONSOLE='yes'          # activate mgetty when using console=... as bootparam
 CONFIG_CONFIGFS='yes'         # automatically mount configfs
+CONFIG_BRLTTY='yes'           # automatically start brltty if a brltty option is specified in /proc/cmdline
 CONFIG_DEBOOTSTRAP='yes'      # support automatic installation of Debian via grml-deboostrap
 CONFIG_DEBNET='yes'           # search for /etc/network/interfaces on partitions and set up network afterwards
 CONFIG_DEBS='yes'             # check for bootoption debs for installing .debs
index b13ea01..42c03bd 100755 (executable)
@@ -762,6 +762,14 @@ EOT
 check_partitions >/dev/null 2>&1 # avoid output "check_partitions:3: read-only file system"
 # }}}
 
+# {{{ Start brltty
+config_brltty() {
+  if checkbootparam 'brltty' ; then
+    [ -x /lib/brltty/brltty.sh ] && /lib/brltty/brltty.sh
+  fi
+}
+# }}}
+
 # {{{ Enable DMA for all IDE drives now if not disabled
 # Notice: Already done by linuxrc, but make sure it's done also on harddisk-installed systems
 config_dma(){
index 4e69dbb..9ccfc79 100755 (executable)
@@ -122,6 +122,8 @@ checkvalue $CONFIG_TESTCD && config_testcd
 
 checkvalue $CONFIG_MODULES && config_modules
 
+checkvalue $CONFIG_BRLTTY && config_brltty
+
 checkvalue $CONFIG_ACPI && config_acpi
 
 checkvalue $CONFIG_DMA && config_dma