summaryrefslogtreecommitdiff
path: root/recipes-core/multitech
diff options
context:
space:
mode:
authorSerhii Voloshynov <serhii.voloshynov@globallogic.com>2023-06-07 09:49:26 +0300
committerJohn Klug <john.klug@multitech.com>2023-06-07 11:32:47 -0500
commit6febccca4b84fd27a4fb24a94a7a6c35859870b0 (patch)
tree0bacd18e9548d545ea50289a6e581bb7fee3f21c /recipes-core/multitech
parentc08b7412132dbcbafb09abbd9f6b5c61d376f67a (diff)
downloadmeta-mlinux-6febccca4b84fd27a4fb24a94a7a6c35859870b0.tar.gz
meta-mlinux-6febccca4b84fd27a4fb24a94a7a6c35859870b0.tar.bz2
meta-mlinux-6febccca4b84fd27a4fb24a94a7a6c35859870b0.zip
remake reset-handler.sh to use uboot var to erase all userdata including persistent
Diffstat (limited to 'recipes-core/multitech')
-rwxr-xr-xrecipes-core/multitech/reset-handler/reset-handler.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/recipes-core/multitech/reset-handler/reset-handler.sh b/recipes-core/multitech/reset-handler/reset-handler.sh
index f36136e..fe6b903 100755
--- a/recipes-core/multitech/reset-handler/reset-handler.sh
+++ b/recipes-core/multitech/reset-handler/reset-handler.sh
@@ -21,7 +21,6 @@
# THE SOFTWARE.
PERSISTENT_DIR="/var/persistent/"
-ERASE_PERSISTENT="${PERSISTENT_DIR}/mts_do_erase_persistent"
name="reset-handler"
log="logger -t $name -s"
@@ -53,9 +52,7 @@ do_restore_defaults() {
$log "Resetting passwords"
source rmpasswd
fi
- if [[ -d ${PERSISTENT_DIR} ]] ; then
- touch ${ERASE_PERSISTENT}
- fi
+ u-boot setenv erase_persistent_f 1
$log "Rebooting"
sleep 1
reboot