diff options
author | Will Andrews <will@FreeBSD.org> | 2001-09-06 11:17:02 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2001-09-06 11:17:02 +0000 |
commit | 041954d9cca048eb77cc9b30cac392acecdfd88b (patch) | |
tree | 269a3bdf867d869fa65af35624281e32a421de3b /misc/speedtouch_usb/files | |
parent | Update to 20010906. (diff) |
Remove this port -- net/pppoa supersedes it.
Submitted by: brian
Notes
Notes:
svn path=/head/; revision=47468
Diffstat (limited to 'misc/speedtouch_usb/files')
-rw-r--r-- | misc/speedtouch_usb/files/adsl.conf.sample | 22 | ||||
-rw-r--r-- | misc/speedtouch_usb/files/adsl.sh.sample | 14 | ||||
-rw-r--r-- | misc/speedtouch_usb/files/configuration | 16 | ||||
-rw-r--r-- | misc/speedtouch_usb/files/patch-modem_run.c | 67 | ||||
-rw-r--r-- | misc/speedtouch_usb/files/patch-pppoa2.c | 55 |
5 files changed, 0 insertions, 174 deletions
diff --git a/misc/speedtouch_usb/files/adsl.conf.sample b/misc/speedtouch_usb/files/adsl.conf.sample deleted file mode 100644 index 2e91951cb960..000000000000 --- a/misc/speedtouch_usb/files/adsl.conf.sample +++ /dev/null @@ -1,22 +0,0 @@ -# Sample configuration for the SpeedTouch ADSL adapter. -# -# You will have to fill in: -# - <login> -# - <password> -# - <VPI>.<VCI> is defined by your provider. Common values are: -# - 8.35 or 8.67 in France -# - 0.38 in the UK -# - 8.48 in the Netherlands -# or check the value used in Windows. - -adsl: - set authname <login> - set authkey <password> - set device !"pppoa2 -vpi <VPI> -vci <VCI> -v 1" - accept chap - set speed sync - set timeout 900 - set dial "" - set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 - add default HISADDR - enable dns diff --git a/misc/speedtouch_usb/files/adsl.sh.sample b/misc/speedtouch_usb/files/adsl.sh.sample deleted file mode 100644 index 722e77c63c97..000000000000 --- a/misc/speedtouch_usb/files/adsl.sh.sample +++ /dev/null @@ -1,14 +0,0 @@ -ISP=adsl -PATH=$PATH:$PREFIX/bin - -case $1 in -stop) - killall modem_run - killall ppp - ;; -*) - modem_run -f $PREFIX/libdata/mgmt.o -m \ - && ppp -quiet -auto $ISP \ - && echo -n ' ppp($ISP)' - ;; -esac diff --git a/misc/speedtouch_usb/files/configuration b/misc/speedtouch_usb/files/configuration deleted file mode 100644 index 5713cf892f15..000000000000 --- a/misc/speedtouch_usb/files/configuration +++ /dev/null @@ -1,16 +0,0 @@ ----------------------------------------------------------------------- -Installation instructions: - -- Your kernel will need to contain support for USB and the ugen device. - -- Your /etc/ppp/ppp.conf file will need to contain an entry for the ADSL -connection. A sample has been installed as /etc/ppp/adsl.conf.sample. - -- You can then start your connection with the following sequence: - modem_run -f $PREFIX/libdata/mgmt.o -m - ppp -ddial adsl -or use the sample rc.d file in - $PREFIX/etc/rc.d/adsl.sh.sample - -For more information see the INSTALL-BSD in the source directory. ------------------------------------------------------------------------ diff --git a/misc/speedtouch_usb/files/patch-modem_run.c b/misc/speedtouch_usb/files/patch-modem_run.c deleted file mode 100644 index 5ef54dc7a05b..000000000000 --- a/misc/speedtouch_usb/files/patch-modem_run.c +++ /dev/null @@ -1,67 +0,0 @@ ---- modem_run.c.orig Tue Aug 7 22:57:21 2001 -+++ modem_run.c Tue Aug 7 23:08:42 2001 -@@ -216,6 +216,7 @@ - printf("usage: modem_run [-v] [-f microcode] [-m]\n"); - printf(" -v : verbose mode\n"); - printf(" -f microcode : upload this microcode file first\n"); -+ printf(" -d device : use this USB device\n"); - printf(" -m : monitor the line\n"); - printf(" --help : this message\n"); - exit (-1); -@@ -611,6 +612,7 @@ - int verbose = 0, monitoring = 0; - unsigned char buf[TOTAL+1000], prevbuf[TOTAL]; - const char * file = NULL; -+ const char * device = NULL; - - for (i=1;i<argc;i++) - if (strcmp(argv[i],"-v")==0) -@@ -619,6 +621,8 @@ - monitoring = 1; - else if (strcmp(argv[i],"-f")==0 && i+1<argc) - file = argv[++i]; -+ else if (strcmp(argv[i],"-d")==0 && i+1<argc) -+ device = argv[++i]; - else if (strcmp(argv[i],"--help")==0) - usage(); - else -@@ -627,16 +631,29 @@ - if (file == NULL) - usage(); - -- /* we search the modem on the USB bus */ -- fdusb = pusb_search_open(ST_VENDOR,ST_PRODUCT); -- if (fdusb == NULL) -- { -- printf("I'm sorry, I didn't find your ADSL modem!\n"); -- printf("Tips: check that you are running this program as root" -- " and your device is seen by Linux" -- " by checking /proc/bus/usb/devices\n"); -- return -1; -- } -+ if (device == NULL) -+ { -+ /* we search the modem on the USB bus */ -+ fdusb = pusb_search_open(ST_VENDOR,ST_PRODUCT); -+ if (fdusb == NULL) -+ { -+ printf("I'm sorry, I didn't find your ADSL modem!\n"); -+ printf("Tips: check that you are running this program as root" -+ " and your device is seen by Linux" -+ " by checking /proc/bus/usb/devices\n"); -+ return -1; -+ } -+ } -+ else -+ { -+ fdusb = pusb_open(device); -+ if (fdusb == NULL) -+ { -+ printf("I'm sorry, I could not open your ADSL modem at %s\n", -+ device); -+ return -1; -+ } -+ } - - printf("Gotcha, I found your ADSL ALCATEL SpeedTouch USB modem!\n"); - diff --git a/misc/speedtouch_usb/files/patch-pppoa2.c b/misc/speedtouch_usb/files/patch-pppoa2.c deleted file mode 100644 index 323ca0872165..000000000000 --- a/misc/speedtouch_usb/files/patch-pppoa2.c +++ /dev/null @@ -1,55 +0,0 @@ ---- pppoa2.c.orig Tue Aug 7 23:02:15 2001 -+++ pppoa2.c Tue Aug 7 23:06:41 2001 -@@ -890,6 +890,7 @@ - { - char *logfile; - int fdin, fdout, log; -+ const char * device = NULL; - int i; - - pusb_device_t fdusb; -@@ -908,6 +909,8 @@ - my_vci = atoi(argv[++i]); - else if(strcmp(argv[i], "--help") == 0) - usage(); -+ else if(strcmp(argv[i], "-d") == 0 && i + 1 < argc) -+ device = argv[++i]; - else if(strcmp(argv[i], "-f") == 0 && i + 1 < argc) { - logfile = argv[++i]; - if(!verbose) verbose = 1; -@@ -1049,17 +1052,26 @@ - #endif - } - -- /* -- * We search for the first USB device matching ST_VENDOR & ST_PRODUCT. -- * usbdevfs must be mount on /proc/bus/usb (or you may change the path -- * here, according to your config -- */ -+ if (device == NULL) { -+ /* -+ * We search for the first USB device matching ST_VENDOR & ST_PRODUCT. -+ * usbdevfs must be mount on /proc/bus/usb (or you may change the path -+ * here, according to your config -+ */ - -- fdusb = pusb_search_open(ST_VENDOR, ST_PRODUCT); -+ fdusb = pusb_search_open(ST_VENDOR, ST_PRODUCT); - -- if(fdusb == NULL && verbose) { -- printf("< pid=%d > Where is this crappy modem ?!\n", this_process); -- return(-1); -+ if(fdusb == NULL && verbose) { -+ printf("< pid=%d > Where is this crappy modem ?!\n", this_process); -+ return(-1); -+ } -+ } else { -+ fdusb = pusb_open(device); -+ -+ if(fdusb == NULL && verbose) { -+ printf("< pid=%d > The modem is not at %s\n", this_process, device); -+ return(-1); -+ } - } - - /*Debug message*/ |