mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-02-11 03:26:07 +07:00
rules_generator: remove policy from write_cd_rules
The decision about when to create by-id or by-path persistent rules should be made in the generator rules file where it's obvious and easy to modify locally, not in the script.
This commit is contained in:
parent
585e838856
commit
14e1e49484
@ -1,3 +1,6 @@
|
||||
# these rules generate rules for the /dev/{cdrom,dvd,...} symlinks
|
||||
|
||||
# the path of removable devices changes frequently
|
||||
ACTION=="add", SUBSYSTEM=="block", SUBSYSTEMS=="usb|ieee1394", ENV{ID_CDROM}=="?*", ENV{GENERATED}!="?*", PROGRAM="write_cd_rules by-id", SYMLINK+="%c"
|
||||
|
||||
ACTION=="add", SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{GENERATED}!="?*", PROGRAM="write_cd_rules", SYMLINK+="%c"
|
||||
|
@ -53,15 +53,7 @@ fi
|
||||
if [ "$1" ]; then
|
||||
METHOD="$1"
|
||||
else
|
||||
case "$ID_BUS" in
|
||||
usb|ieee1394)
|
||||
METHOD='by-id'
|
||||
;;
|
||||
|
||||
*)
|
||||
METHOD='by-path'
|
||||
;;
|
||||
esac
|
||||
METHOD='by-path'
|
||||
fi
|
||||
|
||||
case "$METHOD" in
|
||||
|
Loading…
Reference in New Issue
Block a user