Added connect on startup behaviro and removed $UID]
This commit is contained in:
5
main.py
5
main.py
@@ -153,8 +153,6 @@ def mountDisk(state: AppState) -> None:
|
|||||||
"mount",
|
"mount",
|
||||||
f"{node}1",
|
f"{node}1",
|
||||||
f"/mnt/{state.config.diskSerial}",
|
f"/mnt/{state.config.diskSerial}",
|
||||||
"-o",
|
|
||||||
"uid=$UID",
|
|
||||||
],
|
],
|
||||||
check=True,
|
check=True,
|
||||||
)
|
)
|
||||||
@@ -188,6 +186,9 @@ def main() -> None:
|
|||||||
|
|
||||||
ledThread.start()
|
ledThread.start()
|
||||||
|
|
||||||
|
if state.config.diskSerial != "":
|
||||||
|
mountDisk(state)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
event = state.diskEventQueue.get_nowait()
|
event = state.diskEventQueue.get_nowait()
|
||||||
|
|||||||
Reference in New Issue
Block a user