summaryrefslogtreecommitdiffstats
path: root/net/pppoa
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-08-31 08:04:22 +0000
committerbrian <brian@FreeBSD.org>2001-08-31 08:04:22 +0000
commit17bd480975cac767bc49b85bde2f8037002d2720 (patch)
tree6024b8ce4070ac437e281b7a79db010e2759c220 /net/pppoa
parentab435257a8d1e1cc96dac108dda563f56ae5c642 (diff)
downloadFreeBSD-ports-17bd480975cac767bc49b85bde2f8037002d2720.zip
FreeBSD-ports-17bd480975cac767bc49b85bde2f8037002d2720.tar.gz
Work out $PREFIX in adsl.sh.sample
Diffstat (limited to 'net/pppoa')
-rw-r--r--net/pppoa/files/patch-aa18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/pppoa/files/patch-aa b/net/pppoa/files/patch-aa
new file mode 100644
index 0000000..76f9ed1
--- /dev/null
+++ b/net/pppoa/files/patch-aa
@@ -0,0 +1,18 @@
+--- doc-bsd/adsl.sh.sample.orig Tue Aug 14 22:15:19 2001
++++ doc-bsd/adsl.sh.sample Fri Aug 31 09:01:15 2001
+@@ -1,3 +1,15 @@
++#! /bin/sh
++
++prog=$(realpath $0) || exit 1
++dir=${prog%/*}
++PREFIX=${dir%/etc/rc.d}
++
++if [ ."$dir" = ."$prog" -o ."$PREFIX" = ."$dir" ]
++then
++ echo "$0: Cannot determine the PREFIX" >&2
++ exit 1
++fi
++
+ ISP=adsl
+ PATH=$PATH:$PREFIX/bin
+
OpenPOWER on IntegriCloud