mirror of
https://github.com/pjandro/fbS1Scripts.git
synced 2025-12-09 02:50:57 +03:00
Add hardReset file
This commit is contained in:
parent
65c342b48e
commit
0a8c065542
19
hardReset.sh
Normal file
19
hardReset.sh
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Unmount server partition
|
||||||
|
umount -lf /server
|
||||||
|
# Format server partition (UBOOT 6)
|
||||||
|
yes | mkfs.ext4 /dev/mmcblk0p6
|
||||||
|
# Create tmpfs on OPT to not change opt folder files
|
||||||
|
mount -t tmpfs tmpfs /opt
|
||||||
|
cd /
|
||||||
|
# Mount and untar firmware to server folder
|
||||||
|
mount /dev/mmcblk0p6 /server
|
||||||
|
tar -xvf /mnt/overlay.tar --no-same-owner -C /
|
||||||
|
# Umount opt to get original opt. Rewrite version to old. For normally work online updating
|
||||||
|
umount /opt
|
||||||
|
mount -o remount,rw /
|
||||||
|
echo "1.0.20" >> /opt/FWVersion
|
||||||
|
mount -o remount,ro /
|
||||||
|
# Save all changes and reboot printer
|
||||||
|
sync
|
||||||
|
reboot
|
||||||
Loading…
x
Reference in New Issue
Block a user