diff options
author | Rod Whitby <rod@whitby.id.au> | 2004-12-25 01:22:09 +0000 |
---|---|---|
committer | Rod Whitby <rod@whitby.id.au> | 2004-12-25 01:22:09 +0000 |
commit | 6be786b612c756bb32b293f2845444482f9cc89a (patch) | |
tree | d19365c0236851832a2e9ad669dda4fc784004b0 /packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc-diversion.patch | |
parent | 6af70483462fff9ebae43dec06da691f4961758e (diff) |
Merge bk://nslu2-linux@nslu2-linux.bkbits.net/openembedded
into home.(none):/home/slug/openembedded
2004/12/25 11:51:29+10:30 (none)!rwhitby
Unslung 3.14-alpha with web control of maintenance mode courtesy of glc
BKrev: 41ccc0c1l52K2v27wIv8njIkGSeejQ
Diffstat (limited to 'packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc-diversion.patch')
-rw-r--r-- | packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc-diversion.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc-diversion.patch b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc-diversion.patch index e69de29bb2..7ab6bbf566 100644 --- a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc-diversion.patch +++ b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/rc-diversion.patch @@ -0,0 +1,29 @@ +--- 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,26 @@ + ## 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 ; mv upgrade-maint.htm upgrade.htm ) ++fi ++ ++# Wait for the USB disks to be recognised. ++sleep 5 ++ ++if ( [ -f /proc/hd_conn ] ) ; then ++ /bin/mount -t ext3 /dev/sda2 /share/hdd/conf ++ /bin/rm -rf /mnt/sda2 ; /bin/ln -s /share/hdd/conf /mnt/sda2 ++fi ++ ++if ( [ -f /proc/hd2_conn ] ) ; then ++ /bin/mount -t ext3 /dev/sdb2 /share/flash/conf ++ /bin/rm -rf /mnt/sdb2 ; /bin/ln -s /share/flash/conf /mnt/sdb2 ++fi ++ |