[PATCH 1/1] update factory reset for generic handling of all type of devices(jffs2, ubi, etc)
Todor Colov
todorcolov at abv.bg
Mon Jul 20 15:18:32 EDT 2020
Signed-off-by: Todor Colov <todorcolov at abv.bg>
---
package/base-files/files/etc/rc.button/reset | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/base-files/files/etc/rc.button/reset b/package/base-files/files/etc/rc.button/reset
index 2403122ad2..0c11bfe462 100755
--- a/package/base-files/files/etc/rc.button/reset
+++ b/package/base-files/files/etc/rc.button/reset
@@ -23,7 +23,7 @@ released)
elif [ "$SEEN" -ge 5 -a -n "$OVERLAY" ]
then
echo "FACTORY RESET" > /dev/console
- jffs2reset -y && reboot &
+ rm -f /etc/config/* && cp -a /rom/etc/* /etc/. ; sync ; reboot
fi
;;
esac
--
2.27.0
More information about the openwrt-devel
mailing list