diff options
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 |