#------------------------------------------------------------------------------
# /etc/rc.d/rc192.speedtouch - install driver for speedtouch usb-dsl-modem
#
# Creation:     2004/11/13 cka
# Last Update:  $Id:
#------------------------------------------------------------------------------


if [ -f /lib/modules/$kversion/kernel/usb/speedtch.o ]
then
    begin_script EAGLE "Configuring driver for SpeedTouch ..." 

    # waiting for the driver 
    /usr/local/bin/colecho "take a nap. SpeedTouch needs much time" cy
    echo -n "."
    sleep 7
    echo -n "."
    sleep 7
    echo -n "."
    sleep 7

    # Load Firmware of SpeedTouch
    /usr/local/bin/colecho "sending firmware to SpeedTouch ..." cy
    modem_run -k -f /etc/speedtch/firmware.bin

#    # Show status of EAGLE-USB
#    if [ "$EAGLE_DO_DEBUG" = "yes" ]
#    then
#        showstat
#    fi

#    # Wait for sync of EAGLE-USB
#    /usr/local/bin/colecho "waiting for eagle-usb to sync ..." cy
#    eaglectrl -s

#    # Print device of EAGLE-USB
#    /usr/local/bin/colecho "Using device ..." cy  
#    eaglectrl -i

#    # Show status of EAGLE-USB
#    if [ "$EAGLE_DO_DEBUG" = "yes" ]
#    then
#        showstat
#    fi
    end_script
fi

