Hello,
I try now to install Ralink RT2570 with USB key and following files :
wi.html
Code:
<a href="http://localhost.drives:8883/USB_DRIVE_A-1/wi.cgi">wi</a>
and wi.cgi
Code:
#!/bin/sh
echo "Content-Length: 29";
echo "Content-type: text/html";
echo "";
#echo "<html><head><title>wifi installation</title></head><h2>*** WIFI ***</h2><body> realy WIFI <br>"
echo "wifi..<br>";
echo "wifi............\n">/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt;
#WIFI Ralink RT2570 wifi chipsets
echo "WIFI Ralink RT2570 wifi chipsets<br>";
echo "WIFI Ralink RT2570 wifi chipsets\n">>/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt
echo "ls /lib/modules/2.6.15-sigma/kernel/drivers/usb<br>"
echo "ls /lib/modules/2.6.15-sigma/kernel/drivers/usb\n">>/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt
ls /lib/modules/2.6.15-sigma/kernel/drivers/usb
echo "mkdir -p /lib/modules/2.6.15-sigma/kernel/drivers/usb<br>"
echo "mkdir -p /lib/modules/2.6.15-sigma/kernel/drivers/usb\n">>/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt
# add -p option in case of directory allready exist
mkdir -p /lib/modules/2.6.15-sigma/kernel/drivers/usb>>/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt
echo "cp -f /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/rt2570.ko<br>"
echo "cp -f /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/rt2570.ko\n">>/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt
# add -f option in case of file allready exist
cp -f /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/rt2570.ko /lib/modules/2.6.15-sigma/kernel/drivers/usb
echo "echo 7194 > /proc/sys/vm/min_free_kbytes<br>"
echo "echo 7194 > /proc/sys/vm/min_free_kbytes\n">>/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt
echo 7194 > /proc/sys/vm/min_free_kbytes
echo "modprobe rt2570<br>"
echo "modprobe rt2570\n">>/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt
modprobe rt2570
echo "/opt/wifi/bin/iwconfig<br>"
echo "/opt/wifi/bin/iwconfig\n">>/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt
/opt/wifi/bin/iwconfig wlan0 essid popcorn
/opt/wifi/bin/iwconfig wlan0 mode managed
/opt/wifi/bin/iwconfig wlan0 channel 6
/opt/wifi/bin/iwconfig wlan0 key 01234
/sbin/ifconfig wlan0 192.168.10.160 up
echo "/sbin/route add default gw 192.168.10.254<br>"
echo "/sbin/route add default gw 192.168.10.254\n">>/opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/wi.txt
/sbin/route add default gw 192.168.10.254
#echo "</body></html>"
exit 0
Only the command echo works !
wi.txt (trace of this script) shows not cariage return and the
script exit when I activate any of following command :
- ls /lib/modules/2.6.15-sigma/kernel/drivers/usb
- mkdir -p /lib/modules/2.6.15-sigma/kernel/drivers/usb
- cp -f /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/rt2570.ko
/lib/modules/2.6.15-sigma/kernel/drivers/usb
The file start_app.sh is empty now.

please help: Why any of this command doesn't work ?
- Why any of this command doesn't work ?
- why trace file wi.txt as no cariage return and line feed (not verry important)
- if possible can you do a correction of my script
Thanks and regards
Operating mode :
copy wi.html and wi.cgi on USB key
plug USB key into popcorn
browse file with popcorn
execute wi.html
execute wi.cgi