Sierra Wireless AC850

From chaoswiki
Revision as of 14:38, 18 May 2006 by Obri (talk | contribs)
Jump to navigation Jump to search

Hier fehlt noch Text

 #!/bin/sh
 # 20060517
 # Daniel Aubry 
 # SyGroup GmbH
 # Version 0.1
 # Initscript fuer Sierra Wireless Karte mit pcmciautils 
 # benoetigt catty http://catty.sourceforge.net/ oder http://debian.syhosting.ch/software/catty_2006.03.13-3_i386.deb

 PIN="2342"
 DEV="/dev/ttyS2"

 cat /lib/firmware/SW_8xx_SER.cis > /sys/class/pcmcia_socket/pcmcia_socket0/cis
 /lib/udev/pcmcia-socket-startup
 antwort=`catty -r0 -d $DEV -b 57600 -w "\nAT+CPIN=\"$PIN\"\n" | tail -n1`
 signal=`catty -r 0 -d $DEV -b 57600 -w "\nAT+CSQ\n" | grep CSQ: | cut -d" " -f2`
 echo "Rueckmeldung vom Modem: $antwort"
 echo "Signalqualitaet: $signal"