summaryrefslogtreecommitdiff
path: root/nonsystemd/brltty/brltty.install
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2021-02-21 22:45:47 -0300
committerDavid P <megver83@parabola.nu>2021-02-21 22:45:47 -0300
commitd0a10c758977323bccf5268f136b736ad2cabf48 (patch)
tree0e543e8e41bfb598ff321c0ba8cf2cbdf8f2f901 /nonsystemd/brltty/brltty.install
parenta4a1af5fdf6339ab2afbf545dcc6f95c3761acf7 (diff)
downloadabslibre-d0a10c758977323bccf5268f136b736ad2cabf48.tar.gz
abslibre-d0a10c758977323bccf5268f136b736ad2cabf48.tar.bz2
abslibre-d0a10c758977323bccf5268f136b736ad2cabf48.zip
addpkg: nonsystemd/brltty 6.3-1.nonsystemd1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'nonsystemd/brltty/brltty.install')
-rw-r--r--nonsystemd/brltty/brltty.install12
1 files changed, 12 insertions, 0 deletions
diff --git a/nonsystemd/brltty/brltty.install b/nonsystemd/brltty/brltty.install
new file mode 100644
index 000000000..4dc023329
--- /dev/null
+++ b/nonsystemd/brltty/brltty.install
@@ -0,0 +1,12 @@
+post_install () {
+ [ ! -e /etc/brlapi.key ] && brltty-genkey
+ echo "Please add your user to the brlapi group."
+}
+
+post_upgrade () {
+ post_install
+}
+
+post_remove() {
+ [ -e /etc/brlapi.key ] && rm -v /etc/brlapi.key
+}