File: brltty-udeb.sh

package info (click to toggle)
brltty 5.6-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 25,116 kB
  • sloc: ansic: 117,871; sh: 6,590; java: 4,785; xml: 3,451; makefile: 1,973; tcl: 1,499; awk: 611; ml: 293; python: 250; lisp: 52
file content (31 lines) | stat: -rw-r--r-- 492 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
pid=/var/run/brltty.pid
[ -r $pid ] && kill -0 `cat $pid` && exit 0

echo debconf-set debian-installer/framebuffer false > /lib/debian-installer.d/S20brltty
rm -f /lib/debian-installer.d/S19brltty

if [ -f /var/run/brltty-Xorg ]
then
	rm /var/run/brltty-Xorg
(
	XORG=""
	while [ -z "$XORG"  ]
	do
		XORG=`pidof Xorg`
		sleep 1
	done
	kill "$XORG"
) &
(
	BTERM=""
	while [ -z "$BTERM"  ]
	do
		BTERM=`pidof bterm`
		sleep 1
	done
	kill "$BTERM"
) &
fi

exec /bin/brltty -P $pid "$@"