#12-9-2010 BJN
#This file will allow you do boot an SD card with the proper file system
#Download ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7260-linux/distributions/debian-sarge-sd_default.tar.bz2
#Unpack this tarball to an SD card formatted EXT2
#On this SD card, edit /etc/fstab and change /dev/sdcard0/disc0/part3 to /dev/sdcard0/disc0/part1

mount  /dev/sdcard0/disc0/part1 /mnt/cf 
mount -t devfs devfs /mnt/cf/dev
chroot /mnt/cf /etc/init.d/rcS.USB

for I in /proc/[0-9]*; do 
	ls -al $I/root; 
done | grep '/mnt/cf' | cut -d'/' -f3 | xargs kill -9
umount /mnt/cf/proc/bus/usb /mnt/cf/dev/pts /mnt/cf/proc /mnt/cf/dev /mnt/cf
