Don't try to pivot to new ramfs if already running on one This patch allows the sysup...
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 7 May 2009 13:51:45 +0000 (13:51 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 7 May 2009 13:51:45 +0000 (13:51 +0000)
commit7da25b844cdf1944755a2ceb95543184776fa8e5
treea06d7664fa93a88f4a8bbb2679fdb818997345ae
parent9209af2c00a71d3b1fe1bf427986a64f259ea95e
Don't try to pivot to new ramfs if already running on one This patch allows the sysupgrade script to continue with the upgrade if openwrt is already running on a ramfs. This allows the use of the sysupgrade script as an _installer_ when running from an iso image. A user could boot the system from a bootable cd and invoke sysupgrade -n <URL> to write an image to the hard disk or CF.

Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
SVN-Revision: 15683
package/base-files/files/sbin/sysupgrade