summaryrefslogtreecommitdiff
path: root/net/speedtouch/files
diff options
context:
space:
mode:
authorabs <abs>2001-07-29 01:18:33 +0000
committerabs <abs>2001-07-29 01:18:33 +0000
commit7a4299d009e1e8b4f9e172a776cdf4cc9b584826 (patch)
treee99843e9c1042fdf6f0913666c5956f5cd72dc57 /net/speedtouch/files
parent40674b21e99b3b37aa0ac305863748d19d55d95f (diff)
downloadpkgsrc-7a4299d009e1e8b4f9e172a776cdf4cc9b584826.tar.gz
Import speedtouch-21062001:
Driver for the ALCATEL SpeedTouch USB ADSL modem. It currently only supports PPPoA encapsulation.
Diffstat (limited to 'net/speedtouch/files')
-rw-r--r--net/speedtouch/files/README29
-rw-r--r--net/speedtouch/files/adsl.sh45
2 files changed, 74 insertions, 0 deletions
diff --git a/net/speedtouch/files/README b/net/speedtouch/files/README
new file mode 100644
index 00000000000..c42ed3410fb
--- /dev/null
+++ b/net/speedtouch/files/README
@@ -0,0 +1,29 @@
+$NetBSD: README,v 1.1.1.1 2001/07/29 01:18:33 abs Exp $
+
+This is pretty much a distillation of INSTALL-BSD
+
+In order to use this package:
+
+ - If you are not running a GENERIC kernel from 1.5.1 or later,
+ ensure your config does not include 'option DIAGNOSTIC', and
+ does include 'device usb', 'device ugen', 'pseudo-device ppp 1',
+ and 'pseudo-device tun 2' (the numbers can be higher).
+
+ - Copy /usr/pkg/share/examples/ppp.conf to /usr/pkg/etc/ppp/ppp.conf,
+ and set:
+ - authname login@provider (for example : fti/xxx@fti)
+ - authkey password
+ - The -vpi and -vci numbers:
+ * 8.35 or 8.67 for France
+ * 0.38 in the UK
+ * 8.48 in the Netherlands
+ (check the value used under Windows)
+ - If you have your own DNS, you can also remove the 'enable dns'.
+
+ - Copy /usr/pkg/etc/rc.d/adsl to /etc/rc.d, and set adsl=YES in /etc/rc.conf
+
+ Note: 'adsl start' tries to load the modem firmware and currently fails if
+ called a second time without a reboot or the modem being disconnected from
+ the machine. To workaround this use '/etc/rc.d/adsl stop ; ppp -ddial adsl'
+ if you need to restart the ppp session.
+
diff --git a/net/speedtouch/files/adsl.sh b/net/speedtouch/files/adsl.sh
new file mode 100644
index 00000000000..9c3ef90115f
--- /dev/null
+++ b/net/speedtouch/files/adsl.sh
@@ -0,0 +1,45 @@
+#!/bin/sh
+#
+# $NetBSD: adsl.sh,v 1.1.1.1 2001/07/29 01:18:33 abs Exp $
+#
+# PROVIDE: adsl
+# REQUIRE: DAEMON
+#
+# On systems with rc.d you will need to copy this to /etc/rc.d and set
+# 'adsl=YES' in /etc/rc.conf
+
+adsl_start()
+{
+ echo "Starting speedtouch adsl."
+ @PREFIX@/sbin/modem_run -f @PREFIX@/libdata/alcaudsl.sys -m
+ @PREFIX@/sbin/ppp -ddial adsl
+}
+
+adsl_stop()
+{
+ PID=`ps ax | awk '/ppp -ddial adsl $/{print $1}'`
+ if [ -n "$PID" ]; then
+ echo "Stopping speedtouch adsl."
+ kill $PID
+ fi
+}
+
+if [ ! -d /etc/rc.d ]
+then
+ case "$1" in
+ start) adsl_start ;;
+ stop) adsl_stop ;;
+ rstart) adsl_stop ; adsl_start ;;
+ esac
+ exit
+fi
+
+. /etc/rc.subr
+
+name="adsl"
+rcvar=$name
+start_cmd="adsl_start"
+stop_cmd="adsl_stop"
+
+load_rc_config $name
+run_rc_command "$1"