summaryrefslogtreecommitdiff
path: root/data/netatalk/_metadata
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
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')
-rwxr-xr-xdata/netatalk/_metadata/extrainst_13
-rwxr-xr-xdata/netatalk/_metadata/postinst6
-rwxr-xr-xdata/netatalk/_metadata/prerm6
3 files changed, 17 insertions, 8 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
diff --git a/data/netatalk/_metadata/postinst b/data/netatalk/_metadata/postinst
deleted file mode 100755
index a7246567a..000000000
--- a/data/netatalk/_metadata/postinst
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-/bin/launchctl list com.saurik.afpd.dns-sd &>/dev/null ||
- /bin/launchctl load /System/Library/LaunchDaemons/com.saurik.afpd.dns-sd.plist
-/bin/launchctl list net.sourceforge.netatalk.afpd &>/dev/null ||
- /bin/launchctl load /System/Library/LaunchDaemons/net.sourceforge.netatalk.afpd.plist
-exit 0
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