From: Ulrich Dangel Date: Fri, 30 Dec 2011 15:24:21 +0000 (+0100) Subject: Re-add simplifed support for brltty. X-Git-Tag: v0.9.46~2 X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=6c265c82405767eccb349f3cf14d432c5dd5b35f Re-add simplifed support for brltty. 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. --- diff --git a/autoconfig b/autoconfig index 5e9b10c..2e10328 100644 --- a/autoconfig +++ b/autoconfig @@ -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 diff --git a/autoconfig.functions b/autoconfig.functions index b13ea01..42c03bd 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -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(){ diff --git a/grml-autoconfig b/grml-autoconfig index 4e69dbb..9ccfc79 100755 --- a/grml-autoconfig +++ b/grml-autoconfig @@ -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