Debian Codegraph @

debian/brltty.postinst

raw
1 #! /bin/sh
2
3 set -e
4
5 case "${1:-}" in
6 configure|reconfigure)
7
8 if [ ! -e /etc/brlapi.key ]; then
9 mcookie >/etc/brlapi.key
10 chmod 0640 /etc/brlapi.key
11 fi
12
13 [ -r /etc/default/brltty ] && . /etc/default/brltty
14
15 ! [ "$START_IN_INITRAMFS" = "true" -o "$START_IN_INITRAMFS" = "yes" ] || \
16 ! command -v update-initramfs >/dev/null 2>&1 || update-initramfs -u
17
18 #update-rc.d brltty start 10 23 . > /dev/null
19
20 ;;
21 esac
22
23 #DEBHELPER#
24