From 1b13628cc01b65d30415bd87f03b553e5076e5a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Mon, 4 Jun 2018 16:13:42 +0200 Subject: [PATCH] Improved Dracut module to support more boot command line arguments --- brltty.spec | 5 ++++- dracut-README | 34 ++++++++++++++++++++++++++-------- dracut-parse-brltty-opts.sh | 21 +++++++++++++++++---- 3 files changed, 47 insertions(+), 13 deletions(-) diff --git a/brltty.spec b/brltty.spec index 485ade6..109838c 100644 --- a/brltty.spec +++ b/brltty.spec @@ -33,7 +33,7 @@ Name: brltty Version: %{pkg_version} -Release: 17%{?dist} +Release: 18%{?dist} License: LGPLv2+ URL: http://brltty.app/ Source0: http://brltty.app/archive/%{name}-%{version}.tar.xz @@ -537,6 +537,9 @@ fi %{_prefix}/lib/dracut/modules.d/99brltty/ %changelog +* Mon Jun 4 2018 Jaroslav Škarvada - 5.6-18 +- Improved Dracut module to support more boot command line arguments + * Fri Jun 1 2018 Jaroslav Škarvada - 5.6-17 - Updated URL and Source diff --git a/dracut-README b/dracut-README index 12bd4be..f8fa33b 100644 --- a/dracut-README +++ b/dracut-README @@ -26,13 +26,31 @@ see https://bugzilla.redhat.com/show_bug.cgi?id=1584036 example BRLTTY_LOCALE=cs_CZ.UTF-8 -Module allows to override some settings from grub -mainly for debugging purposes -brltty.braille_parameters -example: -brltty.braille_parameters="auth=none,host=IP:0" +Module adds boot command line parameters which are parsed +and exported as a coresponding environment variables. The following +is a list of supported boot command line parameters and their mapping +to the environment variables recognized by brltty (for details about +the variables see man brltty): -brltty.braille_driver -example: -brltty.braile_driver="ba" +Boot command line parameter Environment variable +brltty.api_parameters BRLTTY_API_PARAMETERS +brltty.attributes_table BRLTTY_ATTRIBUTES_TABLE +brltty.braille_device BRLTTY_BRAILLE_DEVICE +brltty.braille_driver BRLTTY_BRAILLE_DRIVER +brltty.braille_parameters BRLTTY_BRAILLE_PARAMETERS +brltty.configuration_file BRLTTY_CONFIGURATION_FILE +brltty.contraction_table BRLTTY_CONTRACTION_TABLE +brltty.midi_device BRLTTY_MIDI_DEVICE +brltty.pcm_device BRLTTY_PCM_DEVICE +brltty.preferences_file BRLTTY_PREFERENCES_FILE +brltty.release_device BRLTTY_RELEASE_DEVICE +brltty.screen_driver BRLTTY_SCREEN_DRIVER +brltty.screen_parameters BRLTTY_SCREEN_PARAMETERS +brltty.speech_driver BRLTTY_SPEECH_DRIVER +brltty.speech_input BRLTTY_SPEECH_INPUT +brltty.speech_parameters BRLTTY_SPEECH_PARAMETERS +brltty.text_table BRLTTY_TEXT_TABLE + +Example: +brltty.braile_driver="ba" brltty.braille_parameters="auth=none,host=IP:0" diff --git a/dracut-parse-brltty-opts.sh b/dracut-parse-brltty-opts.sh index 9e6e202..a661de8 100755 --- a/dracut-parse-brltty-opts.sh +++ b/dracut-parse-brltty-opts.sh @@ -1,6 +1,19 @@ #!/bin/bash -BRLTTY_BRAILLE_PARAMETERS=$(getarg brltty.braille_parameters=) -BRLTTY_BRAILLE_DRIVER=$(getarg brltty.braille_driver=) -export BRLTTY_BRAILLE_PARAMETERS -export BRLTTY_BRAILLE_DRIVER +export BRLTTY_API_PARAMETERS=$(getarg brltty.api_parameters=) +export BRLTTY_ATTRIBUTES_TABLE=$(getarg brltty.attributes_table=) +export BRLTTY_BRAILLE_DEVICE=$(getarg brltty.braille_device=) +export BRLTTY_BRAILLE_DRIVER=$(getarg brltty.braille_driver=) +export BRLTTY_BRAILLE_PARAMETERS=$(getarg brltty.braille_parameters=) +export BRLTTY_CONFIGURATION_FILE=$(getarg brltty.configuration_file=) +export BRLTTY_CONTRACTION_TABLE=$(getarg brltty.contraction_table=) +export BRLTTY_MIDI_DEVICE=$(getarg brltty.midi_device=) +export BRLTTY_PCM_DEVICE=$(getarg brltty.pcm_device=) +export BRLTTY_PREFERENCES_FILE=$(getarg brltty.preferences_file=) +export BRLTTY_RELEASE_DEVICE=$(getarg brltty.release_device=) +export BRLTTY_SCREEN_DRIVER=$(getarg brltty.screen_driver=) +export BRLTTY_SCREEN_PARAMETERS=$(getarg brltty.screen_parameters=) +export BRLTTY_SPEECH_DRIVER=$(getarg brltty.speech_driver=) +export BRLTTY_SPEECH_INPUT=$(getarg brltty.speech_input=) +export BRLTTY_SPEECH_PARAMETERS=$(getarg brltty.speech_parameters=) +export BRLTTY_TEXT_TABLE=$(getarg brltty.text_table=)