openap-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[openap-cvs] : openap-main/config/wl11000 reflash,NONE,1.1 rules.mk,1.4,


From: David Kimdon <address@hidden>
Subject: [openap-cvs] : openap-main/config/wl11000 reflash,NONE,1.1 rules.mk,1.4,1.5
Date: Fri, 09 Aug 2002 20:11:40 -0400

Update of /cvsroot/openap/openap-main/config/wl11000
In directory subversions:/tmp/cvs-serv18767

Modified Files:
        rules.mk 
Added Files:
        reflash 
Log Message:
script to reflash the box


--- NEW FILE ---
#!/bin/sh

if [ -z "$1" ] ; then
        echo "Usage: $0 http://flash_url/flash";
        exit 1
fi

# disable the watchdog
/usr/bin/killall -10 i802d

sleep 1

set -e
cd /tmp
/usr/bin/wget $1     -O flash
/usr/bin/wget $1.md5 -O flash.md5
/usr/bin/md5sum      -c flash.md5
set +e

# enter runlevel 1
/etc/rc 1

# update will reboot
/sbin/update /dev/mtd0 0x0 0x100000 /tmp/flash

Index: rules.mk
===================================================================
RCS file: /cvsroot/openap/openap-main/config/wl11000/rules.mk,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- rules.mk    9 Aug 2002 22:55:13 -0000       1.4
+++ rules.mk    10 Aug 2002 00:11:38 -0000      1.5
@@ -16,7 +16,7 @@
 rc1_FILES += $(WL11000)/K50tcpip.router
 endif
 
-EXTRA_IMAGE_TARGETS += wl11000_devices wl11000_image
+EXTRA_IMAGE_TARGETS += wl11000_programs wl11000_devices wl11000_image
 EXTRA_TOOLS_TARGETS += cramfsprogs
 
 
@@ -33,6 +33,10 @@
        rm -rf `find $(IMAGE_DIR)/* -name *CVS*`
        cp flash $(IMAGE_DIR)/flash
        ./misc/build_flash.pl 2097152 sram # 2 * 1024 * 1024
+
+wl11000_devices:
+       $(INSTALL) -d $(DESTDIR)/bin
+       $(INSTALL) $(WL11000)/reflash $(DESTDIR)/bin
 
 MKNOD = /bin/mknod
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]