Run modem_run with a full path
Quote $PREFIX
This commit is contained in:
parent
c647686b4d
commit
79b8bb0110
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61917
1 changed files with 16 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
--- doc-bsd/adsl.sh.sample.orig Tue Dec 11 16:25:52 2001
|
--- doc-bsd/adsl.sh.sample.orig Sat Jun 1 00:34:26 2002
|
||||||
+++ doc-bsd/adsl.sh.sample Sat Jan 5 18:00:31 2002
|
+++ doc-bsd/adsl.sh.sample Tue Jun 25 09:25:51 2002
|
||||||
@@ -1,7 +1,7 @@
|
@@ -1,18 +1,18 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
ISP=adsl
|
ISP=adsl
|
||||||
|
@ -9,3 +9,16 @@
|
||||||
|
|
||||||
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
|
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
|
||||||
echo "$0: Cannot determine the PREFIX" >&2
|
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'
|
||||||
|
;;
|
||||||
|
|
Loading…
Reference in a new issue