chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4337f8f
)
rules: Debian update
author
Marco d'Itri
<md@Linux.IT>
Thu, 31 Jul 2008 08:29:39 +0000
(10:29 +0200)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Thu, 31 Jul 2008 08:29:39 +0000
(10:29 +0200)
rules/debian/50-udev.rules
patch
|
blob
|
history
rules/debian/75-persistent-net-generator.rules
patch
|
blob
|
history
rules/debian/80-drivers.rules
patch
|
blob
|
history
rules/debian/91-permissions.rules
patch
|
blob
|
history
rules/debian/95-late.rules
patch
|
blob
|
history
diff --git
a/rules/debian/50-udev.rules
b/rules/debian/50-udev.rules
index e3a10701cf33507460188b8e929a71886a9a59bc..0ac5d8cfbc0ab3f236653376fd282af22c21b32f 100644
(file)
--- a/
rules/debian/50-udev.rules
+++ b/
rules/debian/50-udev.rules
@@
-29,8
+29,8
@@
SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", \
SYMLINK+="pilot"
# usbfs-like devices
SYMLINK+="pilot"
# usbfs-like devices
-SUBSYSTEM=="usb_device", ACTION=="add", \
- PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", ACTION=="add", \
+SUBSYSTEM=="usb_device", ACTION=="add
|change
", \
+ PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", ACTION=="add
|change
", \
NAME="$result"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}"
NAME="$result"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}"
@@
-39,7
+39,7
@@
KERNEL=="capi", NAME="capi20", SYMLINK+="isdn/capi20"
KERNEL=="capi[0-9]*", NAME="capi/%n"
# video devices
KERNEL=="capi[0-9]*", NAME="capi/%n"
# video devices
-KERNEL=="dvb*", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}", ACTION=="add", \
+KERNEL=="dvb*", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}", ACTION=="add
|change
", \
NAME="$result"
KERNEL=="card[0-9]*", NAME="dri/%k"
NAME="$result"
KERNEL=="card[0-9]*", NAME="dri/%k"
diff --git
a/rules/debian/75-persistent-net-generator.rules
b/rules/debian/75-persistent-net-generator.rules
index e8d3b888e0f69fce3cc33279b1c0c22eb2bd50fe..9fdf106045228e27aaffd5e7e3106092b84a2c6d 100644
(file)
--- a/
rules/debian/75-persistent-net-generator.rules
+++ b/
rules/debian/75-persistent-net-generator.rules
@@
-1,5
+1,5
@@
# These rules generate rules to keep network interface names unchanged
# These rules generate rules to keep network interface names unchanged
-# across reboots write them to /etc/udev/rules.d/70-persistent-net.rules.
+# across reboots
and
write them to /etc/udev/rules.d/70-persistent-net.rules.
# variables used to communicate:
# MATCHADDR MAC address used for the match
# variables used to communicate:
# MATCHADDR MAC address used for the match
@@
-16,9
+16,6
@@
SUBSYSTEM!="net", GOTO="persistent_net_generator_end"
# ignore the interface if a name has already been set
NAME=="?*", GOTO="persistent_net_generator_end"
# ignore the interface if a name has already been set
NAME=="?*", GOTO="persistent_net_generator_end"
-# ignore interfaces without a driver link like bridges and VLANs
-DRIVERS!="?*", GOTO="persistent_net_generator_end"
-
# device name whitelist
KERNEL!="eth*|ath*|wlan*[0-9]|msh*|ra*|sta*|ctc*|lcs*|hsi*", \
GOTO="persistent_net_generator_end"
# device name whitelist
KERNEL!="eth*|ath*|wlan*[0-9]|msh*|ra*|sta*|ctc*|lcs*|hsi*", \
GOTO="persistent_net_generator_end"
@@
-76,8
+73,9
@@
ATTRS{driver}=="?*", \
ENV{COMMENT}="$env{COMMENT} ($attr{driver})"
ENV{COMMENT}="$env{COMMENT} ($attr{driver})"
+# ignore interfaces without a driver link like bridges and VLANs, otherwise
# generate and write the rule
# generate and write the rule
-IMPORT{program}="write_net_rules"
+
DRIVERS=="?*",
IMPORT{program}="write_net_rules"
# rename the interface if requested
ENV{INTERFACE_NEW}=="?*", NAME="$env{INTERFACE_NEW}"
# rename the interface if requested
ENV{INTERFACE_NEW}=="?*", NAME="$env{INTERFACE_NEW}"
diff --git
a/rules/debian/80-drivers.rules
b/rules/debian/80-drivers.rules
index edfcfa53946d258ce3f764b07966147af1504930..417bfd5de46ec9aa1c38dc9697aff0f195b1a2b5 100644
(file)
--- a/
rules/debian/80-drivers.rules
+++ b/
rules/debian/80-drivers.rules
@@
-52,6
+52,8
@@
LABEL="hotplug_not_add_event"
SUBSYSTEM=="net", RUN+="net.agent"
SUBSYSTEM=="net", RUN+="net.agent"
+SUBSYSTEM=="atm", RUN+="dsl-modem.agent"
+
# Log every event to /dev/hotplug.log (for debugging).
#RUN+="logger.agent"
# Log every event to /dev/hotplug.log (for debugging).
#RUN+="logger.agent"
diff --git
a/rules/debian/91-permissions.rules
b/rules/debian/91-permissions.rules
index 5182a4bd28037194298e2aa0b372ecae0cfe8f31..3270d41aa390d4dfe2cfe6b6532980036231d0c1 100644
(file)
--- a/
rules/debian/91-permissions.rules
+++ b/
rules/debian/91-permissions.rules
@@
-1,4
+1,4
@@
-ACTION!="add", GOTO="permissions_end"
+ACTION!="add
|change
", GOTO="permissions_end"
# devices needed to load the drivers providing them
KERNEL=="tun", OPTIONS+="ignore_remove"
# devices needed to load the drivers providing them
KERNEL=="tun", OPTIONS+="ignore_remove"
diff --git
a/rules/debian/95-late.rules
b/rules/debian/95-late.rules
index 622e019ef3afc27f73cbf4d893b59c7ced2a006a..1b52c0f002f9f8a6933c4acb8e325a519f93bf0b 100644
(file)
--- a/
rules/debian/95-late.rules
+++ b/
rules/debian/95-late.rules
@@
-14,5
+14,5
@@
ACTION=="remove", NAME=="?*", TEST=="/lib/udev/devices/$name", \
OPTIONS+="ignore_remove"
# debugging monitor
OPTIONS+="ignore_remove"
# debugging monitor
-RUN+="socket:/org/kernel/udev/monitor"
+RUN+="socket:
@
/org/kernel/udev/monitor"