summaryrefslogtreecommitdiff
path: root/recipes-core
diff options
context:
space:
mode:
authorPatrick Murphy <Patrick.Murphy@multitech.com>2020-05-18 15:34:13 -0500
committerJohn Klug <john.klug@multitech.com>2020-06-18 20:22:08 -0500
commita55e0b121279b20c741fe81153ca31c918101d64 (patch)
tree0eb660519ae2bd1e6219d2f6b00a904c8f7380a9 /recipes-core
parentb0822d81911c8b657e5fb6f2cf432835bc1a74ab (diff)
downloadmeta-mlinux-a55e0b121279b20c741fe81153ca31c918101d64.tar.gz
meta-mlinux-a55e0b121279b20c741fe81153ca31c918101d64.tar.bz2
meta-mlinux-a55e0b121279b20c741fe81153ca31c918101d64.zip
modified commissioning recipe to support rmpasswd. modified reset-handler to call rmpasswd
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