summarylogtreecommitdiffstats
path: root/ueyed.install
diff options
context:
space:
mode:
authorMaarten de Vries2016-05-25 23:19:47 +0200
committerMaarten de Vries2016-05-25 23:19:47 +0200
commit375b86577e2e4e851df3124e90e2420c011ab3df (patch)
treef2363365bcacdaa616f4f8bfff811119be88d4cc /ueyed.install
parent42a5e8c3f7f9feff644790927a66c3710fed5524 (diff)
downloadaur-375b86577e2e4e851df3124e90e2420c011ab3df.tar.gz
Fix /usr/bin/ueyeethdnotify and add post-install message.
Diffstat (limited to 'ueyed.install')
-rw-r--r--ueyed.install13
1 files changed, 13 insertions, 0 deletions
diff --git a/ueyed.install b/ueyed.install
index c81590da9088..cffcd0a8f145 100644
--- a/ueyed.install
+++ b/ueyed.install
@@ -1,3 +1,16 @@
+_config_message() {
+ echo "The ethernet daemon must be configured using /etc/ueye/ueyeethd.conf"
+ echo "You also need to make sure /usr/bin/ueyeethdnotify or /usr/bin/ueyenotify is called when an interface comes up or down."
+}
+
post_install() {
useradd --system -M --shell /bin/false ueyed
+ _config_message
+}
+
+post_upgrade() {
+ old_version=$2
+ diff="$(vercmp $old_version '4.72-2')"
+ (( diff < 0 )) && _config_message
+ true
}