From 6febccca4b84fd27a4fb24a94a7a6c35859870b0 Mon Sep 17 00:00:00 2001 From: Serhii Voloshynov Date: Wed, 7 Jun 2023 09:49:26 +0300 Subject: remake reset-handler.sh to use uboot var to erase all userdata including persistent --- recipes-core/multitech/reset-handler/reset-handler.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'recipes-core') 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 -- cgit v1.2.3