summaryrefslogtreecommitdiff
path: root/data/netatalk/_metadata/prerm
diff options
context:
space:
mode:
Diffstat (limited to 'data/netatalk/_metadata/prerm')
-rwxr-xr-xdata/netatalk/_metadata/prerm6
1 files changed, 4 insertions, 2 deletions
diff --git a/data/netatalk/_metadata/prerm b/data/netatalk/_metadata/prerm
index 4fd7ef15d..461826ea4 100755
--- a/data/netatalk/_metadata/prerm
+++ b/data/netatalk/_metadata/prerm
@@ -1,6 +1,8 @@
#!/bin/sh
-! /bin/launchctl list com.saurik.afpd.dns-sd &>/dev/null ||
+
+if [[ $1 == remove ]]; then
/bin/launchctl unload /System/Library/LaunchDaemons/com.saurik.afpd.dns-sd.plist
-! /bin/launchctl list net.sourceforge.netatalk.afpd &>/dev/null ||
/bin/launchctl unload /System/Library/LaunchDaemons/net.sourceforge.netatalk.afpd.plist
+fi
+
exit 0