Portál AbcLinuxu, 25. října 2025 15:37
/etc/ppp/peers/speedtch lcp-echo-interval 10 lcp-echo-failure 3 noipdefault defaultroute user 444555666 noauth noaccomp nopcomp noccp novj holdoff 4 persist maxfail 25 updetach usepeerdns plugin pppoatm.so 8.48Jadro 2.6.8-5:
#>grep speedtouch -i .config CONFIG_USB_SPEEDTOUCH=mAdresar /etc/hotplug/usb:
#>ls /etc/hotplug/usb speedtouchObsah souboru speedtouch:
#!/bin/sh -e
PATH=/sbin:/bin:/usr/sbin:/usr/bin
export PATH
# Add here the command line options for modem_run.
# -k will be automatically added later if needed.
MODEM_RUN_OPTIONS=""
# firmware loader
FIRMWARE_LOADER_FILE="/usr/share/speedtouch/boot.v123.bin"
# modem firmware
FIRMWARE_FILE="/usr/local/lib/speedtouch/firmware.bin"
# a PPP peer to call
PPPD_PEER="speedtch"
# an interface to start with ifup
NET_IF=""
# you can use this file to change the default configuration
[ -f /etc/default/speedtouch ] && . /etc/default/speedtouch
##############################################################################
if [ ! -e "$FIRMWARE_FILE" ]; then
echo "Cannot find $FIRMWARE_FILE."
exit 1
fi
if [ ! -e "$FIRMWARE_LOADER_FILE" ]; then
echo "Cannot find $FIRMWARE_LOADER_FILE"
exit 1
fi
if [ ! -f /proc/bus/usb/devices ]; then
if ! mount -t usbdevfs none /proc/bus/usb 2> /dev/null; then
echo "Cannot mount the USB device filesystem."
exit 1
fi
fi
# use -k if we are using the kernel space driver
if grep -q -E '^I:.*Driver=speedtch$' /proc/bus/usb/devices; then
MODEM_RUN_OPTIONS="$MODEM_RUN_OPTIONS -k"
fi
if [ "$FIRMWARE_LOADER_FILE" ]; then
MODEM_RUN_OPTIONS="$MODEM_RUN_OPTIONS -a $FIRMWARE_LOADER_FILE"
fi
MODEM_RUN_OPTIONS="$MODEM_RUN_OPTIONS -f $FIRMWARE_FILE"
##############################################################################
load_firmware() {
if ! modem_run $MODEM_RUN_OPTIONS; then
echo "Cannot initialize the modem."
# exit 1
fi
return 0
}
start_networking() {
if [ "$PPPD_PEER" ]; then
sleep 5
pppd call $PPPD_PEER
fi
if [ "$NET_IF" ]; then
sleep 5
ifup $NET_IF
fi
return 0
}
# This is needed to work around a bug of modem_run not noticing that
# the modem has been unplugged. See #218795 for details.
setup_remover() {
[ "$REMOVER" ] || return 0
{
echo "#!/bin/sh"
[ "$PPPD_PEER" ] && printf "poff $PPPD_PEER\nsleep 5\n"
echo "killall modem_run"
} >> $REMOVER
chmod +x $REMOVER
return 0
}
##############################################################################
case "$ACTION" in
add)
load_firmware
start_networking
setup_remover
;;
esac
vnstat -r --enable -i ppp0
exit 0
Stahni si zip KQD6_R204.zip:
KQD6P1.eni KQD6P2.eniVetsi soubor je firmware. Viz soubor speedtouch. Na konci souboru /etc/ppp/chap-secrets je:
login * heslo
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.