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:
@@ -85,18 +85,21 @@ files_imported = 0
|
||||
|
||||
|
||||
while True:
|
||||
myCmd = "mount| grep /share/external/DEV3301_1"
|
||||
myCmd = "mount| grep /share/external/DEV3301| grep -v grep | awk '{ print $3 }'"
|
||||
status, output = subprocess.getstatusoutput(myCmd)
|
||||
print(output)
|
||||
print(status)
|
||||
if status != 0:
|
||||
devs = output.splitlines()
|
||||
|
||||
if len(devs) == 0:
|
||||
time.sleep(10)
|
||||
else:
|
||||
for _DEV_MOUNT in devs:
|
||||
print("Device mounted")
|
||||
myCmd = "/sbin/hal_app --se_buzzer enc_id=0,mode=101"
|
||||
status, output = subprocess.getstatusoutput(myCmd)
|
||||
|
||||
_DEV_MOUNT = f"/share/external/DEV3301_1"
|
||||
# _DEV_MOUNT = f"/share/external/DEV3301_1"
|
||||
_DEV_DIR = f"{_DEV_MOUNT}/DCIM"
|
||||
_IMP_FILE = f"{_DEV_MOUNT}/auto_import"
|
||||
_DEV_DATA = f"{_DEV_MOUNT}/MISC/version.txt"
|
||||
|
||||
Reference in New Issue
Block a user