[sysupgrade] Don't try to pivot to new ramfs if already running on one
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)
commita0c690b535373a91456c5d717a41735a0f423c4e
treed0bf2cba5aeca633da33be6897659dd09c40f9cf
parent665a163dac7cc26150a630637bc51b04911232bc
[sysupgrade] 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