|
|
@ -125,11 +125,10 @@ if __name__ == '__main__': |
|
|
|
#loop-mount |
|
|
|
#mkfs |
|
|
|
subprocess.run(['mkfs', '-t', 'vfat', '-n', 'SCREENSHOTS', '/tmp/usbdisk.img'], shell=False, check=True) |
|
|
|
#subprocess.run(['mount', '-o', 'loop,ro', '-t', 'vfat', '/tmp/usbdisk.img', '/mnt'], shell=False, check=True) |
|
|
|
# copy screenshot-tool.exe |
|
|
|
# copy background.png |
|
|
|
#subprocess.run(['umount', '/mnt'], shell=False, check=False) |
|
|
|
|
|
|
|
subprocess.run(['mount', '-o', 'loop,rw', '-t', 'vfat', '/tmp/usbdisk.img', '/mnt'], shell=False, check=True) |
|
|
|
subprocess.run('cp /opt/freezer/background.png /mnt/', shell=True, check=True) |
|
|
|
subprocess.run('cp /opt/freezer/freeze.exe /mnt/', shell=True, check=True) |
|
|
|
subprocess.run(['umount', '/mnt'], shell=False, check=True) |
|
|
|
|
|
|
|
subprocess.run(['modprobe', 'g_mass_storage', 'file=/tmp/usbdisk.img', 'stall=0', 'removable=1', 'iSerialNumber=1234567890'], shell=False, check=True) |
|
|
|
#tvservice -p |
|
|
|