Update S58factoryreset
This commit is contained in:
parent
220949a9d1
commit
8d7da1a90e
1 changed files with 6 additions and 1 deletions
|
@ -12,7 +12,12 @@ 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
|
||||
/bin/rm -rf /overlay/upper/* >/dev/null 2>&1
|
||||
/usr/bin/find /overlay/upper/ -path '/overlay/upper/etc/dropbear' -prune -o \
|
||||
-path /overlay/upper/etc/init.d/S58factoryreset -o \
|
||||
-exec rm {} \; >/dev/null 2>&1
|
||||
/usr/bin/find /overlay/upper/ -type d \
|
||||
-depth -print \
|
||||
-exec rmdir {} \; >/dev/null 2>&1
|
||||
/usr/bin/find /usr/data/ \
|
||||
-path '/usr/data/creality' -prune -o \
|
||||
-path '/usr/data/wpa_supplicant.conf' -prune -o \
|
||||
|
|
Loading…
Add table
Reference in a new issue