From a528a9ffebabe9d6e65f4908e3eeeff2e5193253 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 12 Apr 2018 06:35:53 +0000 Subject: [PATCH] system: make factory reset a bit more thorough Suggested by: Markus Stubbig --- src/etc/inc/system.inc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc index 9bb8cd8d0..20c84a2df 100644 --- a/src/etc/inc/system.inc +++ b/src/etc/inc/system.inc @@ -1382,13 +1382,9 @@ function system_login_configure($verbose = false) exec('/bin/kill -HUP 1'); } -/****f* config/reset_factory_defaults - * NAME - * reset_factory_defaults - Reset the system to its default configuration. - ******/ function reset_factory_defaults($sync = true) { - mwexec('/bin/rm -r /conf/*'); + mwexec('/bin/rm -fr /conf/* /var/log/* /root/.history'); disable_security_checks(); mwexec('/usr/local/sbin/beep.sh stop');