diff options
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 | 30 |
1 files changed, 21 insertions, 9 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 cfdbb0b7b4..2ee70b19e7 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 @@ -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,26 @@ +@@ -1,4 +1,43 @@ ## Simple beta script to verify csr + +if ( [ -f /unslung/rc ] && . /unslung/rc ) ; then return 0 ; fi @@ -14,21 +14,33 @@ + ( cd /home/httpd/html/Management ; mv upgrade-maint.htm upgrade.htm ) +fi + -+#if ( [ -f /.sda2root ] || [ -f /.sdb2root ] ) ; then -+# echo "Root filesystem is running a external disk ..." -+# ( cd /home/httpd/html/Management ; mv upgrade-maint.htm upgrade.htm ) -+#fi ++if ( [ -f /.sda1root ] || [ -f /.sdb1root ] || [ -f /.sda2root ] || [ -f /.sdb2root ] ) ; then ++ echo "Root filesystem is running a external disk ..." ++ ( cd /home/httpd/html/Management ; cp 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 ++ 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 -+ /bin/mount -t ext3 /dev/sdb2 /share/flash/conf -+ /bin/rm -rf /mnt/sdb2 ; /bin/ln -s /share/flash/conf /mnt/sdb2 ++ 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 + |