mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-03 20:55:47 +01:00
Update plugin.py
This commit is contained in:
@@ -865,6 +865,16 @@ class NeoBootImageChoose(Screen):
|
|||||||
if fileExists('/tmp/.init_reboot'):
|
if fileExists('/tmp/.init_reboot'):
|
||||||
system('rm /tmp/.init_reboot')
|
system('rm /tmp/.init_reboot')
|
||||||
|
|
||||||
|
if fileExists('/media/sda1'):
|
||||||
|
if len(os.listdir('/media/sda1') ) == 0:
|
||||||
|
#print("Directory sda1 is empty")
|
||||||
|
os.system('rm -r /media/sda1')
|
||||||
|
|
||||||
|
if fileExists('/media/sda1'):
|
||||||
|
if len(os.listdir('/media/sdb1') ) == 0:
|
||||||
|
#print("Directory sdb1 is empty")
|
||||||
|
os.system('rm -r /media/sdb1')
|
||||||
|
|
||||||
if fileExists('/.multinfo'):
|
if fileExists('/.multinfo'):
|
||||||
if not fileExists('/.control_ok'):
|
if not fileExists('/.control_ok'):
|
||||||
if fileExists('/.control_boot_new_image'):
|
if fileExists('/.control_boot_new_image'):
|
||||||
|
|||||||
Reference in New Issue
Block a user