summaryrefslogtreecommitdiff
path: root/recipes-core/multitech/reset-handler
diff options
context:
space:
mode:
authorPatrick Murphy <Patrick.Murphy@multitech.com>2020-05-18 15:34:13 -0500
committerPatrick Murphy <Patrick.Murphy@multitech.com>2020-05-18 15:34:13 -0500
commit7afb8c9e71390b6aa13341d79dd839e9da213c89 (patch)
tree0eb660519ae2bd1e6219d2f6b00a904c8f7380a9 /recipes-core/multitech/reset-handler
parente26f94e3f97b755652327f5652ea32f9ebf2b57b (diff)
downloadmeta-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-xrecipes-core/multitech/reset-handler/reset-handler.sh5
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