diff options
author | Rod Whitby <rod@whitby.id.au> | 2005-06-10 12:49:36 +0000 |
---|---|---|
committer | Rod Whitby <rod@whitby.id.au> | 2005-06-10 12:49:36 +0000 |
commit | b51451ff3b0ed7f1815fcbae13ed78fdd2f8f98b (patch) | |
tree | 3c2808b594b4c74d579c3038eee2f2ae8cc2713d /packages/nslu2-binary-only/unslung-rootfs | |
parent | 8cfed7bad561d9ef0cf0e405248148a941de6147 (diff) |
Unslung 5.2-alpha: added upgrade-real.cgi back, and locked the binutils version
BKrev: 42a98c60MK24-FJNelzawrvMjPVYHw
Diffstat (limited to 'packages/nslu2-binary-only/unslung-rootfs')
-rw-r--r-- | packages/nslu2-binary-only/unslung-rootfs/rc-diversion.patch | 47 | ||||
-rw-r--r-- | packages/nslu2-binary-only/unslung-rootfs/upgrade.cgi | 0 |
2 files changed, 47 insertions, 0 deletions
diff --git a/packages/nslu2-binary-only/unslung-rootfs/rc-diversion.patch b/packages/nslu2-binary-only/unslung-rootfs/rc-diversion.patch index e69de29bb2..71094f6e10 100644 --- a/packages/nslu2-binary-only/unslung-rootfs/rc-diversion.patch +++ b/packages/nslu2-binary-only/unslung-rootfs/rc-diversion.patch @@ -0,0 +1,47 @@ +--- nslu2-linksys-ramdisk-2.3r25/etc/rc~ 2004-07-27 23:37:55.000000000 -0400 ++++ nslu2-linksys-ramdisk-2.3r25/etc/rc 2004-09-01 21:47:47.000000000 -0400 +@@ -1,4 +1,44 @@ + ## Simple beta script to verify csr ++ ++if ( [ -f /unslung/rc ] && . /unslung/rc ) ; then return 0 ; fi ++ + /usr/bin/Set_Led r_blinking & + mount -t proc proc /proc + mount -o remount,rw /dev/root / ++ ++if [ -f /.ramdisk ] ; then ++ echo "Root filesystem is running in maintenance mode ..." ++ ( cd /home/httpd/html/Management ; cp upgrade-maint.htm upgrade.htm ) ++elif ( [ -f /.sda1root ] || [ -f /.sdb1root ] || [ -f /.sda2root ] || [ -f /.sdb2root ] ) ; then ++ echo "Root filesystem is running from an external disk ..." ++ ( cd /home/httpd/html/Management ; cp upgrade-inhibit.htm upgrade.htm ) ++else ++ echo "Root filesystem is running from jffs2 ..." ++ ( cd /home/httpd/html/Management ; cp upgrade-nomaint.htm upgrade.htm ) ++fi ++ ++# Wait for the USB disks to be recognised. ++sleep 10 ++ ++if ( [ -f /proc/hd_conn ] ) ; then ++ if ( [ -f /.sda1root ] ) ; then ++ /bin/mount -t ext3 /dev/sda1 /share/hdd/data ++ /bin/rm -rf /mnt/sda1 ; /bin/ln -s /share/hdd/data /mnt/sda1 ++ fi ++ if ( [ -f /.sda2root ] ) ; then ++ /bin/mount -t ext3 /dev/sda2 /share/hdd/conf ++ /bin/rm -rf /mnt/sda2 ; /bin/ln -s /share/hdd/conf /mnt/sda2 ++ fi ++fi ++ ++if ( [ -f /proc/hd2_conn ] ) ; then ++ if ( [ -f /.sdb1root ] ) ; then ++ /bin/mount -t ext3 /dev/sdb2 /share/flash/data ++ /bin/rm -rf /mnt/sdb1 ; /bin/ln -s /share/flash/data /mnt/sdb1 ++ fi ++ if ( [ -f /.sdb2root ] ) ; then ++ /bin/mount -t ext3 /dev/sdb2 /share/flash/conf ++ /bin/rm -rf /mnt/sdb2 ; /bin/ln -s /share/flash/conf /mnt/sdb2 ++ fi ++fi ++ diff --git a/packages/nslu2-binary-only/unslung-rootfs/upgrade.cgi b/packages/nslu2-binary-only/unslung-rootfs/upgrade.cgi new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/nslu2-binary-only/unslung-rootfs/upgrade.cgi |