diff --git a/files/services/S58factoryreset b/files/services/S58factoryreset index 7adf4f8..ff6cd51 100755 --- a/files/services/S58factoryreset +++ b/files/services/S58factoryreset @@ -12,8 +12,10 @@ factory_reset() { ACTION=stop /usr/bin/auto_uvc.sh >/dev/null 2>&1 echo "Info: Factory reset was executed successfully, the printer will restart..." /etc/init.d/rcK >/dev/null 2>&1 - /usr/bin/find /overlay/upper/ -path '/overlay/upper/etc/dropbear' -prune -o \ - -path /overlay/upper/etc/init.d/S58factoryreset -o \ + /usr/bin/find /overlay/upper/ \ + -path '/overlay/upper/etc/dropbear' -prune -o \ + -path /overlay/upper/etc/localtime -prune -o \ + -path /overlay/upper/etc/init.d/S58factoryreset -prune -o \ -exec rm {} \; >/dev/null 2>&1 /usr/bin/find /overlay/upper/ -type d \ -depth -print \