From 354aeb288356feaffb38eba1766652a8e838e1f3 Mon Sep 17 00:00:00 2001 From: dima Date: Fri, 5 Jan 2001 14:15:49 +0000 Subject: rc script fix (supports start/stop thingie now) Submitted by: joseph@randomnetworks.com --- palm/pilot-link-devel/Makefile | 4 +--- palm/pilot-link-devel/files/pilot-link.sh | 15 +++++++++++++++ palm/pilot-link/Makefile | 4 +--- palm/pilot-link/files/pilot-link.sh | 15 +++++++++++++++ 4 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 palm/pilot-link-devel/files/pilot-link.sh create mode 100644 palm/pilot-link/files/pilot-link.sh (limited to 'palm') diff --git a/palm/pilot-link-devel/Makefile b/palm/pilot-link-devel/Makefile index 4f6e6dd3bd7..47300857751 100644 --- a/palm/pilot-link-devel/Makefile +++ b/palm/pilot-link-devel/Makefile @@ -28,9 +28,7 @@ MAN1= dlpsh.1 ietf2datebook.1 install-datebook.1 \ MAN7= pilot-link.7 post-install: - @${ECHO} "#!/bin/sh" > ${LOCALBASE}/etc/rc.d/pilot-link.sh - @${ECHO} "" >> ${LOCALBASE}/etc/rc.d/pilot-link.sh - @${ECHO} "${LDCONFIG} -m ${PREFIX}/lib" >> ${LOCALBASE}/etc/rc.d/pilot-link.sh + @{$SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/pilot-link.sh > ${PREFIX}/etc/rc.d/pilot-link.sh @${CHMOD} 750 ${LOCALBASE}/etc/rc.d/pilot-link.sh .include diff --git a/palm/pilot-link-devel/files/pilot-link.sh b/palm/pilot-link-devel/files/pilot-link.sh new file mode 100644 index 00000000000..1e02019b2f9 --- /dev/null +++ b/palm/pilot-link-devel/files/pilot-link.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +case "$1" in + start) + /sbin/ldconfig -m %%PREFIX%%/pilot/lib + ;; + stop) + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + echo 64 + ;; +esac diff --git a/palm/pilot-link/Makefile b/palm/pilot-link/Makefile index 4f6e6dd3bd7..47300857751 100644 --- a/palm/pilot-link/Makefile +++ b/palm/pilot-link/Makefile @@ -28,9 +28,7 @@ MAN1= dlpsh.1 ietf2datebook.1 install-datebook.1 \ MAN7= pilot-link.7 post-install: - @${ECHO} "#!/bin/sh" > ${LOCALBASE}/etc/rc.d/pilot-link.sh - @${ECHO} "" >> ${LOCALBASE}/etc/rc.d/pilot-link.sh - @${ECHO} "${LDCONFIG} -m ${PREFIX}/lib" >> ${LOCALBASE}/etc/rc.d/pilot-link.sh + @{$SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/pilot-link.sh > ${PREFIX}/etc/rc.d/pilot-link.sh @${CHMOD} 750 ${LOCALBASE}/etc/rc.d/pilot-link.sh .include diff --git a/palm/pilot-link/files/pilot-link.sh b/palm/pilot-link/files/pilot-link.sh new file mode 100644 index 00000000000..1e02019b2f9 --- /dev/null +++ b/palm/pilot-link/files/pilot-link.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +case "$1" in + start) + /sbin/ldconfig -m %%PREFIX%%/pilot/lib + ;; + stop) + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + echo 64 + ;; +esac -- cgit