[PATCH] Don't try to pivot to new ramfs if already running on one
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 7 May 2009 14:20:09 +0000 (14:20 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 7 May 2009 14:20:09 +0000 (14:20 +0000)
commit8cebaa45d6cd56347d18ab7c18fe6d6cf0040d0b
tree5a23bbf5e73b24bea101544cb3ac2c87b09c6fa0
parente4d0d97fbbbe578a9d1d4524ccc61949b98305b0
[PATCH] Don't try to pivot to new ramfs if already running on one
This patch allows the luci-flash script to continue with the upgrade if
openwrt is already running on a ramfs. This allows the use of luci-flash
as an _installer_ when running from an iso image. A user could boot the
system from a bootable cd and write an image to the hard disk or CF from
the Flash Firmware page.

Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
modules/admin-core/root/sbin/luci-flash