mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
udevil-mount: avoid mounting already mounted partitions
This commit is contained in:
parent
d8db9d5b0b
commit
fffd87426c
@ -16,7 +16,7 @@ GOTO="exit"
|
||||
|
||||
# mount or umount for hdds
|
||||
LABEL="harddisk"
|
||||
ACTION=="add", RUN+="/usr/bin/systemctl restart udevil-mount@/dev/%k.service"
|
||||
ACTION=="add", PROGRAM="/usr/bin/sh -c '/usr/bin/grep -E ^/dev/%k\ /proc/mounts || true'", RESULT=="", RUN+="/usr/bin/systemctl restart udevil-mount@/dev/%k.service"
|
||||
ACTION=="remove", RUN+="/usr/bin/systemctl stop udevil-mount@/dev/%k.service"
|
||||
GOTO="exit"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user