blob: dbe9c0c00ab82eafdf1e1bafd4f42377c2d54500 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
--- doc-bsd/adsl.sh.sample.orig Tue Aug 14 22:15:19 2001
+++ doc-bsd/adsl.sh.sample Sat Sep 1 02:12:23 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
@@ -5,7 +17,7 @@
start)
modem_run -f $PREFIX/libdata/mgmt.o -m \
&& ppp -quiet -auto $ISP \
- && echo -n ' ppp($ISP)'
+ && echo -n " ppp($ISP)"
;;
stop)
killall modem_run
|