summaryrefslogtreecommitdiff
path: root/recipes-core
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/multitech/commissioning_1.0.1.bb2
-rwxr-xr-xrecipes-core/multitech/reset-handler/reset-handler.sh5
2 files changed, 7 insertions, 0 deletions
diff --git a/recipes-core/multitech/commissioning_1.0.1.bb b/recipes-core/multitech/commissioning_1.0.1.bb
index 06e1904..1bb2a7b 100644
--- a/recipes-core/multitech/commissioning_1.0.1.bb
+++ b/recipes-core/multitech/commissioning_1.0.1.bb
@@ -33,6 +33,8 @@ do_install() {
cp -a ${S}/${sysconfdir}/ ${D}/
cp -a ${S}/www/ ${D}/
cp -a ${S}/${prefix} ${D}/
+ cp -a ${S}/usr/ ${D}/
+ chmod 755 ${D}/usr/bin/rmpasswd/
chmod 755 ${D}/etc/init.d/*
chmod 755 ${D}/${libexecdir}/commission/*
chown -R root:root ${D}/
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