brltty: start brltty service instead of invoking /lib/brltty/brltty.sh
authorMichael Prokop <mika@grml.org>
Fri, 14 Dec 2018 10:11:40 +0000 (11:11 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 14 Dec 2018 10:13:58 +0000 (11:13 +0100)
The /lib/brltty/brltty.sh script doesn't seem to work as such any longer
to start the service.  When starting brltty via `systemctl start brltty`
it at least starts (I'm not sure it's actually working for users of
braille devices., but don't know how to verify it on my own).

Closes: https://github.com/grml/grml/issues/58

autoconfig.functions

index cea100a..a7b9153 100755 (executable)
@@ -757,7 +757,8 @@ fi
 # {{{ Start brltty
 config_brltty() {
   if checkbootparam 'brltty' ; then
 # {{{ Start brltty
 config_brltty() {
   if checkbootparam 'brltty' ; then
-    [ -x /lib/brltty/brltty.sh ] && /lib/brltty/brltty.sh
+    einfo "Starting brltty service as requested on boot commandline."
+    service_wrapper brltty start ; eend $?
   fi
 }
 # }}}
   fi
 }
 # }}}