summaryrefslogtreecommitdiff
path: root/recipes-core/multitech/reset-handler/reset-handler.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/multitech/reset-handler/reset-handler.sh')
-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