luci/modules
Florian Eckert da4fab0462 luci-mod-admin-full: change supports_reset() test for factory reset
The check "supports_reset" only covers /proc/mtd partitions. If we have
this the commands checks for names like ubi or rootfs_data. If this is
found the system is possible for a factory reset.  But on x86 the
situation is different.  We have no /proc/mtd partitions because this
system do not use a bare metall flash.

To solve this issue check if we have an overlay and if so we could do a
factory reset. This could be applied for system which uses bare metal
flash and system which uses FTL or harddisks.

Jffs2reset is the current command used for factory reset.  It will try
to find volume "rootfs_data" and if it's mounted will delete all files
under directory /overlay

luci-mod-admin-mini also has check for reset available, but we leave it
alone for now as it uses "mtd -r erase rootfs_data"

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-05-07 20:36:40 +08:00
..
luci-base luci-base: reload log on uci system change 2018-05-07 14:37:35 +08:00
luci-mod-admin-full luci-mod-admin-full: change supports_reset() test for factory reset 2018-05-07 20:36:40 +08:00
luci-mod-admin-mini treewide: unify mac address handling 2018-03-12 16:12:18 +01:00
luci-mod-failsafe luci-mod-failsafe: use same string as luci-mod-admin-full 2016-12-10 19:11:50 +02:00
luci-mod-freifunk luci-mod-freifunk: align spacing 2018-04-25 21:13:00 +02:00
luci-mod-freifunk-community Rework LuCI build system 2015-01-08 16:26:20 +01:00
luci-mod-rpc luci-mod-rpc: more auth/login fixes, expose further libraries 2018-05-05 23:11:07 +02:00