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, 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