aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2002-06-25 16:30:02 +0800
committerbrian <brian@FreeBSD.org>2002-06-25 16:30:02 +0800
commit6809642afbf7f756741c3636f0554d59a4cfec63 (patch)
tree95171f590daa84955565ea16020134e3b524bf16 /net
parent5f0623699ebe6bebf26f48df11496d3fc4d0b576 (diff)
downloadfreebsd-ports-gnome-6809642afbf7f756741c3636f0554d59a4cfec63.tar.gz
freebsd-ports-gnome-6809642afbf7f756741c3636f0554d59a4cfec63.tar.zst
freebsd-ports-gnome-6809642afbf7f756741c3636f0554d59a4cfec63.zip
Run modem_run with a full path
Quote $PREFIX
Diffstat (limited to 'net')
-rw-r--r--net/pppoa/files/patch-aa19
1 files changed, 16 insertions, 3 deletions
diff --git a/net/pppoa/files/patch-aa b/net/pppoa/files/patch-aa
index 863fd7c5ae89..657592f225fd 100644
--- a/net/pppoa/files/patch-aa
+++ b/net/pppoa/files/patch-aa
@@ -1,6 +1,6 @@
---- doc-bsd/adsl.sh.sample.orig Tue Dec 11 16:25:52 2001
-+++ doc-bsd/adsl.sh.sample Sat Jan 5 18:00:31 2002
-@@ -1,7 +1,7 @@
+--- doc-bsd/adsl.sh.sample.orig Sat Jun 1 00:34:26 2002
++++ doc-bsd/adsl.sh.sample Tue Jun 25 09:25:51 2002
+@@ -1,18 +1,18 @@
#!/bin/sh
ISP=adsl
@@ -9,3 +9,16 @@
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
echo "$0: Cannot determine the PREFIX" >&2
+ exit 1
+ fi
+
+-PATH=$PATH:$PREFIX/bin
++PATH="$PATH:$PREFIX/bin"
+
+ case $1 in
+ start)
+- modem_run -f $PREFIX/libdata/mgmt.o \
++ "$PREFIX/sbin/modem_run" -f "$PREFIX/libdata/mgmt.o" \
+ && ppp -quiet -$MODE $ISP \
+ && echo -n ' ppp'
+ ;;