Files
LibreELEC.tv/packages/sysutils/udevil/udev.d/95-udevil-mount.rules
Stephan Raue 4fbed8af2b udevil: add mounthelper script
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-09-28 18:47:58 +02:00

17 lines
485 B
Plaintext

# dont run in "installer" mode
IMPORT{cmdline}="installer"
ENV{installer}=="1", GOTO="exit"
# check for blockdevices, /dev/sd* and /dev/sr*
SUBSYSTEM!="block", KERNEL!="sd*|sr*",GOTO="exit"
IMPORT{builtin}="blkid"
# /dev/sd* with partitions/disk and filesystems only and /dev/sr* disks only
KERNEL=="sd*", ENV{DEVTYPE}=="partition|disk", ENV{ID_FS_USAGE}=="filesystem", RUN+="udevil_helper"
KERNEL=="sr*", ENV{DEVTYPE}=="disk", RUN+="udevil_helper"
GOTO="exit"
# Exit
LABEL="exit"