summaryrefslogtreecommitdiff
path: root/data/openssh/_metadata/postinst
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-02-25 10:37:30 +0000
committerJay Freeman <saurik@saurik.com>2008-02-25 10:37:30 +0000
commitc7696b0f9d23e045f32b6cd332d46d3fe0a39d40 (patch)
tree626490a93aa5dac6039a7a2007fe26f4a29063f2 /data/openssh/_metadata/postinst
parent9a2e50eedbf47a9b4ea61694e9171ff78746ae9f (diff)
Slightly less irritating package scripts for starting/stopping sshd.
git-svn-id: http://svn.telesphoreo.org/trunk@100 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/openssh/_metadata/postinst')
-rwxr-xr-xdata/openssh/_metadata/postinst3
1 files changed, 2 insertions, 1 deletions
diff --git a/data/openssh/_metadata/postinst b/data/openssh/_metadata/postinst
index 6d47c8d6f..4899fcae7 100755
--- a/data/openssh/_metadata/postinst
+++ b/data/openssh/_metadata/postinst
@@ -1,3 +1,4 @@
#!/bin/sh
-/bin/launchctl load /Library/LaunchDaemons/com.openssh.sshd.plist
+/bin/launchctl list com.openssh.sshd &>/dev/null ||
+ /bin/launchctl load /Library/LaunchDaemons/com.openssh.sshd.plist
exit 0