diff options
author | Serhii Voloshynov <serhii.voloshynov@globallogic.com> | 2023-06-07 09:49:26 +0300 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2023-06-07 11:32:47 -0500 |
commit | 6febccca4b84fd27a4fb24a94a7a6c35859870b0 (patch) | |
tree | 0bacd18e9548d545ea50289a6e581bb7fee3f21c /recipes-core | |
parent | c08b7412132dbcbafb09abbd9f6b5c61d376f67a (diff) | |
download | meta-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')
-rwxr-xr-x | recipes-core/multitech/reset-handler/reset-handler.sh | 5 |
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 |