diff options
author | Jesse Gilles <jgilles@multitech.com> | 2015-05-26 17:22:07 -0500 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2015-05-26 17:22:07 -0500 |
commit | 437f0c42726d464cdb6aea0f7393b0f9f92b62df (patch) | |
tree | 309cecaea213c274ebb1fbd19e29583bca41e4ff /recipes-core/multitech | |
parent | e1854e132d0e30777fdb7bfcc7af0d28e7a0f40c (diff) | |
download | meta-mlinux-437f0c42726d464cdb6aea0f7393b0f9f92b62df.tar.gz meta-mlinux-437f0c42726d464cdb6aea0f7393b0f9f92b62df.tar.bz2 meta-mlinux-437f0c42726d464cdb6aea0f7393b0f9f92b62df.zip |
reset-handler: wipe /var/config on reset to defaults3.1.0
Diffstat (limited to 'recipes-core/multitech')
-rwxr-xr-x | recipes-core/multitech/reset-handler/reset-handler.sh | 2 | ||||
-rw-r--r-- | recipes-core/multitech/reset-handler_1.0.bb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/recipes-core/multitech/reset-handler/reset-handler.sh b/recipes-core/multitech/reset-handler/reset-handler.sh index 62eeda8..50a6783 100755 --- a/recipes-core/multitech/reset-handler/reset-handler.sh +++ b/recipes-core/multitech/reset-handler/reset-handler.sh @@ -35,6 +35,8 @@ do_reboot() { } do_restore_defaults() { + $log "Removing /var/config contents" + rm -rf /var/config/* $log "Setting restore defaults on reboot" touch /var/config/force_defaults $log "Rebooting" diff --git a/recipes-core/multitech/reset-handler_1.0.bb b/recipes-core/multitech/reset-handler_1.0.bb index 4342bdd..13dec93 100644 --- a/recipes-core/multitech/reset-handler_1.0.bb +++ b/recipes-core/multitech/reset-handler_1.0.bb @@ -2,7 +2,7 @@ DESCRIPTION = "Default reset button handler" SECTION = "base" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" -PR = "r0" +PR = "r1" inherit update-rc.d |