summaryrefslogtreecommitdiffstats
path: root/osx/scripts/preinstall.in
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:02:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:02:34 +0000
commitfadeddfbb2aa38a980dd959b5ec1ffba7afd43cb (patch)
treea7bde6111c84ea64619656a38fba50909fa0bf60 /osx/scripts/preinstall.in
parentInitial commit. (diff)
downloadlldpd-fadeddfbb2aa38a980dd959b5ec1ffba7afd43cb.tar.xz
lldpd-fadeddfbb2aa38a980dd959b5ec1ffba7afd43cb.zip
Adding upstream version 1.0.18.upstream/1.0.18upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xosx/scripts/preinstall.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/osx/scripts/preinstall.in b/osx/scripts/preinstall.in
new file mode 100755
index 0000000..bb73125
--- /dev/null
+++ b/osx/scripts/preinstall.in
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -e
+
+if /bin/launchctl list "im.bernat.lldpd" &> /dev/null; then
+ /bin/launchctl unload "/Library/LaunchDaemons/im.bernat.lldpd.plist"
+fi