From a55e0b121279b20c741fe81153ca31c918101d64 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Mon, 18 May 2020 15:34:13 -0500 Subject: modified commissioning recipe to support rmpasswd. modified reset-handler to call rmpasswd --- recipes-core/multitech/commissioning_1.0.1.bb | 2 ++ recipes-core/multitech/reset-handler/reset-handler.sh | 5 +++++ 2 files changed, 7 insertions(+) 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 -- cgit v1.2.3