Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 71610 Details for
Bug 110665
speedtouch ebuild to deprecate modem_run
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
speedtouch.rc-pppoe
speedtouch.rc-pppoe (text/plain), 2.28 KB, created by
Paul Bredbury
on 2005-10-27 21:10:46 UTC
(
hide
)
Description:
speedtouch.rc-pppoe
Filename:
MIME Type:
Creator:
Paul Bredbury
Created:
2005-10-27 21:10:46 UTC
Size:
2.28 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > ># Kernel-space driver for Alcatel SpeedTouch modems (for >=2.6.10 kernels) > >get_ip_addr() { > IP_ADDR=`ifconfig ppp0 2>/dev/null | grep -F "inet ad" | cut -f2 -d":" | cut -f1 -d" "` >} > >depend() { > need localmount modules net.nas0 > before ntp-client ntpd > > # There is more configuration required here, as mentioned at http://www.linux-usb.org/SpeedTouch/gentoo/index.html > # /etc/init.d/net.nas0 needs to be set up, for the Ethernet interface, from the br2684ctl ebuild >} > >start() { > ebegin "Starting SpeedTouch ADSL modem" > > if [ -e "/var/run/ppp0.pid" ]; then > eend 1 "ppp0 is already running" > return 1 > fi > > # PEER is defined in /etc/conf.d/speedtouch > if [ ! -f "/etc/ppp/peers/$PEER" ]; then > eend 1 "/etc/ppp/peers/$PEER does not exist" > return 1 > fi > > # Skip USB check, since the modem is not connected via USB. > > # PPPoE modules > modprobe -q br2684 > modprobe -q pppoe > > # Reluctant pause, to stop the kernel driver from executing this script twice, > # and populating /var/log/messages with errors like: > # "connect(0.38): No such device". > # There would normally be a pause of several seconds anyway, > # For the firmware to load, and an initial connection made. > sleep 8 > > # Check that the firmware is loading. > local SYNC="" > local i=0 > while [ 1 ]; do > SYNC=`dmesg | grep 'ADSL line is up'` > if [ ! -z "${SYNC}" ]; then > # Firmware is loading, so continue > break > fi > if [ $i -ge ${FIRMWARE_TIMEOUT} ]; then > # Timed out > eend 1 "Timeout waiting for firmware loading" > return 1 > fi > sleep 2 > i=$[$i+2] > done > > start-stop-daemon --start -p /var/run/ppp0.pid -x /usr/sbin/pppd call $PEER > > if [ ${WAIT_FOR_PPP} == "yes" ]; then > # Assume failure until an IP address is seen > local RETCODE=1 > # Wait for an IP address > i=0 > while [ 1 ]; do > get_ip_addr > if [ ${IP_ADDR} ]; then > # ppp0 has an IP address - success > RETCODE=0 > # Wait for the connection to settle > sleep 4 > break > fi > if [ $i -ge ${PPP_TIMEOUT} ]; then > # Timed out > break > fi > sleep 2 > i=$[$i+2] > done > eend ${RETCODE} > else > eend $? > fi >} > >stop() { > ebegin "Stopping SpeedTouch ADSL modem" > start-stop-daemon --stop -p /var/run/ppp0.pid -n pppd > eend $? >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 110665
:
71602
|
71603
|
71604
|
71605
|
71606
|
71607
|
71608
|
71609
|
71610
|
71755
|
71756
|
72142
|
72368
|
73449
|
75860
|
79207
|
80819
|
80820
|
80882
|
80910
|
82540
|
82541