summaryrefslogtreecommitdiff
path: root/data/netatalk/_metadata/prerm
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-10-16 22:33:03 +0000
committerJay Freeman <saurik@saurik.com>2008-10-16 22:33:03 +0000
commit723da617c52176f61c5782fbe0cb5b05169d75ad (patch)
treea624f331bafdf9ac30aeeee77f66246b5b580230 /data/netatalk/_metadata/prerm
parent5f908867983163d4a75b69320db7c11875b24d7d (diff)
Finally finished Netatalk ;P.
git-svn-id: http://svn.telesphoreo.org/trunk@495 514c082c-b64e-11dc-b46d-3d985efe055d
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