Developing lightweight computation at the DSG edge

Commit f987545c authored by p4u's avatar p4u
Browse files

Added a rm -rf /overlay/* before upgrade system to be sure it removes all jffs fies

parent a0ada3d2
......@@ -152,6 +152,7 @@ qmp_update_upgrade_system() {
read -p "Do you want to upgrade system using image $image_url? [N,y] " a
if [ "$a" == "y" ]; then
rm -rf /overlay/* 2>/dev/null
[ -n "$config" ] && sysupgrade -f $config $output_image
[ -z "$config" ] && sysupgrade -n $output_image
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment