commit e4c7109de058ddc4999b69d2c0df928fd6ff5491 parent 0a23a4e834ee04579ed1b1379eab6728443af3c5 Author: rbckman <rob@tarina.org> Date: Sun, 8 Sep 2024 22:24:42 +0100 truths and rights Diffstat:
M | gonzopi.py | | | 11 | +++++++---- |
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/gonzopi.py b/gonzopi.py @@ -216,10 +216,12 @@ def main(): storagedrives=[['sd',filmfolder]] #CHECK IF FILMING TO USB STORAGE - if os.path.exists('/dev/sda1') == False: - os.system('sudo umount /media/usb0') - if os.path.exists('/dev/sda2') == False: - os.system('sudo umount /media/usb1') + #if os.path.exists('/dev/sda1') == False: + # os.system('sudo pumount /media/usb0') + # os.system('sudo umount -l /media/usb0') + #if os.path.exists('/dev/sda2') == False: + # os.system('sudo pumount /media/usb1') + # os.system('sudo umount -l /media/usb1') filmfolderusb=usbfilmfolder(dsk) if filmfolderusb: filmfolder=filmfolderusb @@ -4718,6 +4720,7 @@ def usbfilmfolder(dsk): writemessage('Oh-no! dont know your filesystem') waitforanykey() filmfolder = '/media/usb'+str(usbmount)+'/gonzopifilms/' + os.system('sudo chmod 755 '+filmfolder) #run_command('pumount /media/usb'+str(usbmount)) writemessage('Filming to USB'+str(usbmount)) time.sleep(1)