summaryrefslogtreecommitdiff
path: root/net/zephyr/files/zhm.sh
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1998-02-27 11:19:14 +0000
committeragc <agc@pkgsrc.org>1998-02-27 11:19:14 +0000
commitb0b11bead93286e8596cc5f76d1e56bb79d75298 (patch)
tree1355af4161356fe14c90677109654e5fd6613f74 /net/zephyr/files/zhm.sh
parent61de1f39df254c4d394dd87d54f855d60780f841 (diff)
downloadpkgsrc-b0b11bead93286e8596cc5f76d1e56bb79d75298.tar.gz
Add this shell script from FreeBSD. Don't hardcode /usr/local,
though - this gets pre-processed at install time.
Diffstat (limited to 'net/zephyr/files/zhm.sh')
-rw-r--r--net/zephyr/files/zhm.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/zephyr/files/zhm.sh b/net/zephyr/files/zhm.sh
new file mode 100644
index 00000000000..bd8580ecf90
--- /dev/null
+++ b/net/zephyr/files/zhm.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+PREFIX=${PREFIX-@prefix@}
+
+if [ -x ${PREFIX}/sbin/zhm -a -f ${PREFIX}/etc/zephyr/server.list ] ; then
+ PATH=${PREFIX}/sbin:${PREFIX}/bin:$PATH ; export PATH
+ zhm `cat ${PREFIX}/etc/zephyr/server.list` && echo -n ' zhm'
+fi