thanks for your scripts i'll try soon
regards
arturo
--- In Andrew Taylor <> wrote:
> On Fri, Sep 30, 2005 at 11:02:28PM -0000, artboreb wrote:
> > hello list, (sorry if my english isn't good enough)
> > I need WIFI 802.11 support to work with my ts-7200
> > I have a D-Link DWL-120+ (USB pluggable) and I have not much
> > experience with Linux (I work mainly on Freebsd), has anybody
> > done this?
>
> In case it'll help, I've appended the /etc/rcS file I've been using
> for an embedded ts7200 system. Among other things, its starts up
> wireless networking with a linksys wusb11 if it doesn't have an ethernet
> connection. All the /c/* programs are my apps. Its just hacked it
> together so there are probably better ways to do this - but it may give
> you some clues.
>
> Andrew
>
>
> #!/bin/sh
> set -x
> trap ":" INT QUIT TSTP
> PATH='/bin:/sbin:/usr/bin:/usr/sbin'
> export PATH
>
> /c/watchdog -v30 -obase_dir:/mnt/sda2/images &
>
> /sbin/devfsd /dev
>
> echo "now mounting /proc"
> /bin/mount -n -t proc proc /proc
> echo "mounting local filesystems (in fstab)"
> mount -a -rw -t nonfs
>
> if [ -f /proc/driver/rtc ]; then
> echo "setting system clock"
> /sbin/hwclock -u -s
> date
> fi
>
> hostname ts7200a
>
> ifconfig lo 127.0.0.1 netmask 255.0.0.0 broadcast 127.255.255.255 up
> route add -net 127.0.0.0 netmask 255.0.0.0 dev lo
>
> ifconfig eth0 192.168.1.50 netmask 255.255.255.0 broadcast
192.168.255.255 up
>
>
> if [ -x /usr/sbin/inetd ]; then
> echo "starting inetd"
> /usr/sbin/inetd
> fi
> # power everything on except IR spotlight
> /c/ts_arm_util set gpiob 0 0 set gpiob 1 0 set gpiob 2 0 set gpiob 3 1
> sleep 10
> modprobe usb-ohci-ep93xx
> modprobe usb-storage
> modprobe pwc 'size=vga' 'fps=5' 'fbufs=2' 'mbufs=2' 'compression=0'
> sleep 20
> swapon /dev/scsi/host0/bus0/target0/lun0/part1
> mount /dev/scsi/host0/bus0/target0/lun0/part2 /mnt/sda2
> mount -t usbdevfs /proc/bus/usb
>
> ETHERNET_UP=1
> case `ping -c 1 -q 192.168.1.1|sed '/packets received/!d;s/ *packets
received.*//;s/.*, *//'` in
> 0)
> ETHERNET_UP=0
> ifconfig eth0 down
> /c/ts_arm_util set gpioh 2
> if grep 'ProdID=2233' /proc/bus/usb/devices >/dev/null
> then
> modprobe at76_usbdfu
> modprobe at76c503
> modprobe at76c505-rfmd2958
> sleep 10
> iwconfig wlan0 essid camera mode Managed
> ifconfig wlan0 up 192.168.1.50
> route add -net 192.168.1.0 netmask 255.255.255.0 dev wlan0
> route add default gw 192.168.1.1 wlan0
> fi
> ;;
> *)
> route add -net 192.168.1.0 netmask 255.255.255.0 dev eth0
> route add default gw 192.168.1.1 eth0
> esac
> /c/run_camera_trap.sh &
> /www/apache/bin/httpd &
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/CFFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|