Improved Dracut module to support more boot command line arguments

This commit is contained in:
Jaroslav Škarvada 2018-06-04 16:13:42 +02:00
parent 1e04762a8a
commit 1b13628cc0
3 changed files with 47 additions and 13 deletions

View File

@ -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 <jskarvad@redhat.com> - 5.6-18
- Improved Dracut module to support more boot command line arguments
* Fri Jun 1 2018 Jaroslav Škarvada <jskarvad@redhat.com> - 5.6-17
- Updated URL and Source

View File

@ -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"

View File

@ -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=)