diff options
author | Patrick Murphy <Patrick.Murphy@multitech.com> | 2020-05-18 15:34:13 -0500 |
---|---|---|
committer | Patrick Murphy <Patrick.Murphy@multitech.com> | 2020-05-18 15:34:13 -0500 |
commit | 7afb8c9e71390b6aa13341d79dd839e9da213c89 (patch) | |
tree | 0eb660519ae2bd1e6219d2f6b00a904c8f7380a9 /recipes-core/multitech/reset-handler | |
parent | e26f94e3f97b755652327f5652ea32f9ebf2b57b (diff) | |
download | meta-mlinux-7afb8c9e71390b6aa13341d79dd839e9da213c89.tar.gz meta-mlinux-7afb8c9e71390b6aa13341d79dd839e9da213c89.tar.bz2 meta-mlinux-7afb8c9e71390b6aa13341d79dd839e9da213c89.zip |
modified commissioning recipe to support rmpasswd. modified reset-handler to call rmpasswd
Diffstat (limited to 'recipes-core/multitech/reset-handler')
-rwxr-xr-x | recipes-core/multitech/reset-handler/reset-handler.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-core/multitech/reset-handler/reset-handler.sh b/recipes-core/multitech/reset-handler/reset-handler.sh index 50a6783..43f7471 100755 --- a/recipes-core/multitech/reset-handler/reset-handler.sh +++ b/recipes-core/multitech/reset-handler/reset-handler.sh @@ -39,6 +39,11 @@ do_restore_defaults() { rm -rf /var/config/* $log "Setting restore defaults on reboot" touch /var/config/force_defaults + if [[ -x /usr/bin/rmpasswd ]] + then + $log "Resetting passwords" + source rmpasswd + fi $log "Rebooting" sleep 1 reboot |