summaryrefslogtreecommitdiff
path: root/recipes-core/multitech/reset-handler/reset-handler.sh
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2015-05-26 17:22:07 -0500
committerJesse Gilles <jgilles@multitech.com>2015-05-26 17:22:07 -0500
commit437f0c42726d464cdb6aea0f7393b0f9f92b62df (patch)
tree309cecaea213c274ebb1fbd19e29583bca41e4ff /recipes-core/multitech/reset-handler/reset-handler.sh
parente1854e132d0e30777fdb7bfcc7af0d28e7a0f40c (diff)
downloadmeta-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/reset-handler/reset-handler.sh')
-rwxr-xr-xrecipes-core/multitech/reset-handler/reset-handler.sh2
1 files changed, 2 insertions, 0 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"