diff options
author | Maarten de Vries | 2016-05-25 23:19:47 +0200 |
---|---|---|
committer | Maarten de Vries | 2016-05-25 23:19:47 +0200 |
commit | 375b86577e2e4e851df3124e90e2420c011ab3df (patch) | |
tree | f2363365bcacdaa616f4f8bfff811119be88d4cc /ueyed.install | |
parent | 42a5e8c3f7f9feff644790927a66c3710fed5524 (diff) | |
download | aur-375b86577e2e4e851df3124e90e2420c011ab3df.tar.gz |
Fix /usr/bin/ueyeethdnotify and add post-install message.
Diffstat (limited to 'ueyed.install')
-rw-r--r-- | ueyed.install | 13 |
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 } |