diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2000-11-03 16:21:54 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2000-11-03 16:21:54 +0000 |
commit | 079eb6d92230dcfdc686ea95a93ba5ee04dbee65 (patch) | |
tree | 7bb468e3bf9a8f6e6f650560f55c4b09f8d5b6e0 /net/ddup/files/patch-ddupcron.sh | |
parent | Release a number of ports that I don't have time to keep track (diff) |
Update to 3.0.1.
PR: 22280
Submitted by: Christopher J. Michaels <cjm2@altavista.net> (MAINTAINER)
Introduce BSD style Makefile to make the build/installation process clean.
Fix manpage. (/etc -> ${PREFIX}/etc)
Fix ddupcron.sh to match FreeBSD environment.
Notes
Notes:
svn path=/head/; revision=34753
Diffstat (limited to 'net/ddup/files/patch-ddupcron.sh')
-rw-r--r-- | net/ddup/files/patch-ddupcron.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net/ddup/files/patch-ddupcron.sh b/net/ddup/files/patch-ddupcron.sh new file mode 100644 index 000000000000..ed354d7afff8 --- /dev/null +++ b/net/ddup/files/patch-ddupcron.sh @@ -0,0 +1,29 @@ +--- ddupcron.sh.orig Mon Oct 23 02:11:48 2000 ++++ ddupcron.sh Thu Nov 2 14:16:39 2000 +@@ -2,19 +2,23 @@ + + # Define the host to be updated as 1st arguement to script + if [ -z $1 ]; then +- echo "Usage: ddupcron.sh hostname" ++ echo "Usage: ddupcron.sh hostname [interface]" + exit + else + HOST=$1 + fi + # Define interface to grep address from +-IFACE="eth0" ++if [ -z $2 ]; then ++ IFACE=fxp0 ++else ++ IFACE=$2 ++fi + IFCHECK=$(/sbin/ifconfig $IFACE|grep ask|awk '{print $2}'|cut -d ':' -f2) + # Define where we should store last IP + IPFILE="/tmp/ddupip" + IPCHECK=$(cat $IPFILE) + # Define path to ddup and ddup arguments (except --host) +-DDUP_PATH="/home/ddup/ddup" ++DDUP_PATH="!!PREFIX!!/sbin/ddup" + DDUP_ARGS="--debug" + + |