Re: problem z uruchomieniem nowej neostrady
> > Jest też metoda z nowym driverem:
> > http://linux-usb.sourceforge.net/SpeedTouch/docs/sargehowto.html
> > ale jeszcze nie wypróbowałem.
>
> metoda opisana pod tym adresem dziala !
> wyprobowalem na Debianie unstable/testing z jadrem oczywiscie 2.4.22
>
> dziala lecz wedlug opisu zaraz po wlozeniu modemu do USB portu powinno
> ladowac firmware.bin oraz startowac pppd no ale to nie dziala moze cos
> zle zrobilem, dalem z lapy modem_run -k -f /sciezka/firmware.bin
U mnie działa. Pewnie masz coś źle z hotplugiem. Przy czym też nie robię
dokładnie według opisu - wszystko jako moduły, naciąłem sie jedynie na to,
że pppoatm nie ładuje się automatycznie.
> no i nasuwa mi sie pytanie co sie stanie jak tepsa zresetuje neo i
> zmieniac sie bedzie IP czy interfejs ppp0 wstanie ...
Nie sprawdzałem, ale chyba tak - opcja "persist" w pppd.
Załączam diff pomiędzy starym i nowym /etc.
Pozdrawiam,
--
Tomek
diff -Nur etc-2003-11-01/hotplug/usb/speedtch etc/hotplug/usb/speedtch
--- etc-2003-11-01/hotplug/usb/speedtch 2003-10-05 15:29:40.000000000 +0200
+++ etc/hotplug/usb/speedtch 2003-11-02 16:09:24.000000000 +0100
@@ -4,11 +4,12 @@
export PATH
# add -k when using the kernel mode driver
-MODEM_RUN_OPTIONS=""
+MODEM_RUN_OPTIONS="-k"
# modem firmware
FIRMWARE_FILE="/usr/local/lib/speedtouch/firmware.bin"
+FIRMWARE_FILE="/usr/src/mgmt/mgmt.o"
# a PPP peer to call
-PPPD_PEER=""
+PPPD_PEER="neostrada"
# you can use this file to change the default configuration
[ -f /etc/defaults/speedtouch ] && . /etc/defaults/speedtouch
@@ -30,6 +31,7 @@
case "$ACTION" in
add)
if modem_run $MODEM_RUN_OPTIONS -f $FIRMWARE_FILE; then
+ /sbin/modprobe pppoatm
if [ "$PPPD_PEER" ]; then
sleep 5
pppd call $PPPD_PEER
diff -Nur etc-2003-11-01/init.d/neostrada etc/init.d/neostrada
--- etc-2003-11-01/init.d/neostrada 2003-10-30 11:38:30.000000000 +0100
+++ etc/init.d/neostrada 2003-11-01 22:15:49.000000000 +0100
@@ -6,12 +6,14 @@
#
# Sciezka do pliku mgmt.o po rozpakowaniu archiwum w pkt 2.2.2.
mgmt_dir=/usr/src/mgmt
+exit
case "$1" in
'start')
/bin/echo -n "Startuje usluge Neostarada Plus ..."
if [ ! -f /var/run/modem_run.pid ]; then
- /usr/sbin/modem_run -m -f ${mgmt_dir}/mgmt.o
+ #/usr/sbin/modem_run -m -f ${mgmt_dir}/mgmt.o
+ /usr/sbin/modem_run -k -f ${mgmt_dir}/mgmt.o
echo `pidof /usr/local/sbin/modem_run` > /var/run/modem_run.pid
fi
pppd call neostrada
diff -Nur etc-2003-11-01/ppp/ip-up.d/2dyndns etc/ppp/ip-up.d/2dyndns
--- etc-2003-11-01/ppp/ip-up.d/2dyndns 1970-01-01 01:00:00.000000000 +0100
+++ etc/ppp/ip-up.d/2dyndns 2003-11-02 16:33:31.000000000 +0100
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /etc
+/usr/sbin/ipcheck -i $PPP_IFACE --acctfile /etc/dyndns
diff -Nur etc-2003-11-01/ppp/peers/neostrada etc/ppp/peers/neostrada
--- etc-2003-11-01/ppp/peers/neostrada 2003-10-30 12:03:16.000000000 +0100
+++ etc/ppp/peers/neostrada 2003-11-01 22:40:35.000000000 +0100
@@ -4,8 +4,8 @@
usepeerdns
noipdefault
defaultroute
-pty "/usr/sbin/pppoa3 -m 1 -c -vpi 0 -vci 35"
-sync
+#pty "/usr/sbin/pppoa3 -m 1 -c -vpi 0 -vci 35"
+#sync
#user "rejestracja@neostrada.pl"
user "GGdacww@neostrada.pl"
noaccomp
@@ -14,3 +14,9 @@
holdoff 4
persist
maxfail 25
+lcp-echo-interval 10
+lcp-echo-failure 3
+novj
+updetach
+plugin pppoatm.so
+0.35
Reply to: