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');