diff options
author | Rod Whitby <rod@whitby.id.au> | 2005-06-11 08:02:57 +0000 |
---|---|---|
committer | Rod Whitby <rod@whitby.id.au> | 2005-06-11 08:02:57 +0000 |
commit | 13aab84e0f22d2648b1c70e1acace80ab82fe46c (patch) | |
tree | 28eb8a5a85ba1ced7692135f022f670bab62b230 /packages/nslu2-binary-only/unslung-rootfs/rc-diversion.patch | |
parent | b6a70a163b042a110ee0b69590edef91103e4ff3 (diff) |
Unslung 5.3-alpha: Replacement maintenance mode with code to force entry into RedBoot Upgrade Mode
BKrev: 42aa9ab1a0AgLpxndHr-C3NotrfZYw
Diffstat (limited to 'packages/nslu2-binary-only/unslung-rootfs/rc-diversion.patch')
-rw-r--r-- | packages/nslu2-binary-only/unslung-rootfs/rc-diversion.patch | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/nslu2-binary-only/unslung-rootfs/rc-diversion.patch b/packages/nslu2-binary-only/unslung-rootfs/rc-diversion.patch index 71094f6e10..cf0b3c1cc5 100644 --- a/packages/nslu2-binary-only/unslung-rootfs/rc-diversion.patch +++ b/packages/nslu2-binary-only/unslung-rootfs/rc-diversion.patch @@ -1,6 +1,6 @@ --- 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 @@ +@@ -1,4 +1,41 @@ ## Simple beta script to verify csr + +if ( [ -f /unslung/rc ] && . /unslung/rc ) ; then return 0 ; fi @@ -11,13 +11,10 @@ + +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. |