#------------------------------------------------------------------------------ # /etc/rc.d/rc192.eagle - install driver for eagle usb-dsl-modem # # Creation: 2004/08/09 cka (old atar215 renamed) # Last Update: $Id$ #------------------------------------------------------------------------------ if [ -f /lib/modules/$kernel_version/kernel/misc/eagle-usb.o -o -f /lib/modules/$kernel_version/kernel/misc/eagle-usb.ko ] then begin_script EAGLE "Configuring driver for eagle-usb ..." # rename CMV file mv /etc/eagle-usb/cmvei.txt /etc/eagle-usb/CMVei.txt # waiting for the driver : ${USB_MODEM_WAITSECONDS:=21} log_info "take a nap. eagle-usb needs much time initializing, waiting for $USB_MODEM_WAITSECONDS seconds." cy log_info "hint: if eagle-usb needs more time add USB_MODEM_WAITSECONDS='x' to config/usb.txt and give it" cy log_info " some more time to initialize." cy for idx in `seq 1 $USB_MODEM_WAITSECONDS` do echo -n "." sleep 1 done echo # Load DSP-Code of EAGLE-USB log_info "sending dsp code to eagle-usb ..." cy eaglectrl -d/etc/eagle-usb/dsp_code_isdn.bin -o/etc/eagle-usb/eagle-usb.conf # Show status of EAGLE-USB case "$EAGLE_DO_DEBUG" in yes) showstat ;; esac # Wait for sync of EAGLE-USB log_info "waiting for eagle-usb to sync ..." cy eaglectrl -s # Print device of EAGLE-USB log_info "Using device ..." cy eaglectrl -i # Show status of EAGLE-USB case "$EAGLE_DO_DEBUG" in yes) showstat ;; esac end_script fi