Update S58factoryreset

This commit is contained in:
Cyril 2024-06-30 11:37:20 +02:00
parent 8d7da1a90e
commit 50fbec9843

View file

@ -12,8 +12,10 @@ factory_reset() {
ACTION=stop /usr/bin/auto_uvc.sh >/dev/null 2>&1 ACTION=stop /usr/bin/auto_uvc.sh >/dev/null 2>&1
echo "Info: Factory reset was executed successfully, the printer will restart..." echo "Info: Factory reset was executed successfully, the printer will restart..."
/etc/init.d/rcK >/dev/null 2>&1 /etc/init.d/rcK >/dev/null 2>&1
/usr/bin/find /overlay/upper/ -path '/overlay/upper/etc/dropbear' -prune -o \ /usr/bin/find /overlay/upper/ \
-path /overlay/upper/etc/init.d/S58factoryreset -o \ -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 -exec rm {} \; >/dev/null 2>&1
/usr/bin/find /overlay/upper/ -type d \ /usr/bin/find /overlay/upper/ -type d \
-depth -print \ -depth -print \