summaryrefslogtreecommitdiff
path: root/data/netatalk/_metadata/extrainst_
diff options
context:
space:
mode:
Diffstat (limited to 'data/netatalk/_metadata/extrainst_')
-rwxr-xr-xdata/netatalk/_metadata/extrainst_13
1 files changed, 13 insertions, 0 deletions
diff --git a/data/netatalk/_metadata/extrainst_ b/data/netatalk/_metadata/extrainst_
new file mode 100755
index 000000000..bcd309e8e
--- /dev/null
+++ b/data/netatalk/_metadata/extrainst_
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [[ $1 == upgrade ]]; then
+ /bin/launchctl unload /System/Library/LaunchDaemons/com.saurik.afpd.dns-sd.plist
+ /bin/launchctl unload /System/Library/LaunchDaemons/net.sourceforge.netatalk.afpd.plist
+fi
+
+if [[ $1 == install || $1 == upgrade ]]; then
+ /bin/launchctl load /System/Library/LaunchDaemons/com.saurik.afpd.dns-sd.plist
+ /bin/launchctl load /System/Library/LaunchDaemons/net.sourceforge.netatalk.afpd.plist
+fi
+
+exit 0