Update S58factoryreset
This commit is contained in:
parent
8d7da1a90e
commit
50fbec9843
1 changed files with 4 additions and 2 deletions
|
@ -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 \
|
||||||
|
|
Loading…
Add table
Reference in a new issue