mirror of
https://gitlab.sectorq.eu/jaydee/auto_import.git
synced 2025-12-14 10:34:53 +01:00
build
This commit is contained in:
@@ -111,6 +111,13 @@ for l in output.splitlines():
|
|||||||
import_drives.append(l)
|
import_drives.append(l)
|
||||||
|
|
||||||
# Main import loop for each drive
|
# Main import loop for each drive
|
||||||
|
|
||||||
|
myCmd = "mount| grep /share/external/DEV3301_1"
|
||||||
|
while True:
|
||||||
|
status, output = subprocess.getstatusoutput(myCmd)
|
||||||
|
print(status)
|
||||||
|
time.sleep(10)
|
||||||
|
if status == 90:
|
||||||
for d in import_drives:
|
for d in import_drives:
|
||||||
logging.debug(f"Working on {d}")
|
logging.debug(f"Working on {d}")
|
||||||
_DEV_MOUNT = f"/mnt/{d}"
|
_DEV_MOUNT = f"/mnt/{d}"
|
||||||
|
|||||||
Reference in New Issue
Block a user