1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00
Commit Graph

125 Commits

Author SHA1 Message Date
Kay Sievers
927e994219 add $links substitution 2008-04-21 17:43:12 +02:00
Kay Sievers
c70560feef logging: add trailing newline to all strings 2008-04-20 21:07:06 +02:00
Kay Sievers
cf100ca71b allow setting of MODE="0000" 2008-04-18 21:07:29 +02:00
Kay Sievers
4278ab015d selinux: fix missing includes 2008-04-17 23:31:09 +02:00
Kay Sievers
c7969cdbcb also accept real socket files for RUN+="socket:<path>" 2008-04-02 04:43:25 +02:00
Kay Sievers
0ea5e96edb extend hack to allow TEST=="*/start" 2008-03-14 23:40:06 +01:00
Kay Sievers
5ee7ecfb0f hack to allow ATTR{block/*/uevent}="change" 2008-03-13 16:00:25 +01:00
Kay Sievers
3a3d078cfd fix wrong variable used in logged string 2007-09-21 00:55:19 +02:00
Harald Hoyer
16511863d9 check line length after comment check and whitespace strip 2007-09-11 17:17:29 +02:00
Kay Sievers
39ea7c6c67 increase WAIT_FOR_SYSFS timeout to 10 seconds
We see SCSI disks where it takes 6.5 seconds to populate the
sysfs attributes.
2007-08-31 11:01:35 +02:00
Kay Sievers
a506e6298c print warning for invalid TEST operations 2007-08-29 22:19:28 +02:00
Kay Sievers
a75689bad5 do not delete the device node with ignore_remove, but handle the event 2007-08-29 14:11:37 +02:00
Kay Sievers
1113044be2 add $name substitution 2007-08-29 14:04:55 +02:00
Michael Morony
1f7a36f2c0 set buffer size if strlcpy/strlcat indicate truncation 2007-08-24 08:14:21 +02:00
Kay Sievers
03f65fe6a9 accept relative path for TEST 2007-08-16 12:45:31 +02:00
Kay Sievers
19096c087f restore behavior of NAME== 2007-07-25 15:29:14 +02:00
Hannes Reinecke
fea9b2d292 add $driver subtitution 2007-07-25 15:24:58 +02:00
Kay Sievers
1ff1aa424b allow SYMLINK== match 2007-07-16 13:29:28 +02:00
Kay Sievers
e2ecb34ffd move udev_utils_run.c into udev_rules.c 2007-07-14 20:59:03 +02:00
Kay Sievers
274da2b23d add udev_rules_run() to handle RUN list 2007-07-14 20:44:19 +02:00
Kay Sievers
fb819f5554 use global udev_log variable instead of parameter in run_program 2007-07-14 20:43:43 +02:00
Kay Sievers
4110664d4f add option to RUN key to ignore the return value of the program 2007-07-14 20:43:01 +02:00
Kay Sievers
3df3c93e25 allow to disable the replacement of unusual characters 2007-06-22 01:27:02 +02:00
Kay Sievers
956cf79390 make ATTR{[$SUBSYSTEM/$KERNEL]<attr>}="<value>" working 2007-06-10 23:53:40 +02:00
Kay Sievers
4ad47b2de6 add "[$SUBSYSTEM/$KERNEL]<attribute>" lookup 2007-06-03 12:29:46 +02:00
Kay Sievers
953249a3a0 add TEST=="<file>" key 2007-06-03 00:01:46 +02:00
Kay Sievers
5e9eb88f2f add $sys substitution 2007-06-02 22:06:01 +02:00
Kay Sievers
90a1e83a3b IMPORT: do not mangle whitespace 2007-05-21 08:00:09 +02:00
Kay Sievers
2f2c4fa442 replace_chars: replace spaces in node name 2007-05-17 20:01:54 +02:00
Kay Sievers
05610c088e udev_db: escape path names with \x00 instead of %00 2007-05-16 19:51:13 +02:00
Kay Sievers
68ab3e137b don't create $tempnode for devices without major 2007-04-30 21:48:30 +02:00
Kay Sievers
db6e59df56 unset variable with ENV{VAR}="" 2007-04-25 01:52:00 +02:00
Kay Sievers
019d666907 udevinfo: export all information stored in database 2007-04-06 19:50:19 +02:00
Kay Sievers
81313e1b48 make ACTION!="add|change" working
Thanks to Scott for the suggestion.
2007-03-31 02:46:32 +02:00
Kay Sievers
d2c9a56e0e don't write to sysfs files during test run 2007-03-23 17:18:03 +01:00
Kay Sievers
eb5b86405b update %n on netif name change 2007-03-19 09:56:53 +01:00
Kay Sievers
31de3a2ba1 read list of devices from index, make index private to database 2007-03-17 10:08:25 +01:00
Kay Sievers
2dbb47f860 add link_priority to rule options, and store it in database 2007-03-16 15:16:08 +01:00
Kay Sievers
4a7e6bcef0 update internal variables if we see $DEVPATH during IMPORT 2007-03-15 00:10:22 +01:00
Kay Sievers
6e82f66ea2 apply format chars to ATTR before writing to sysfs 2007-02-16 13:20:34 +01:00
Sergey Vlasov
c0c865d466 fix %c $string substitution
Fix udev_rules_apply_format() to give error messages for unknown
format elements and pass such elements to the output string
unmodified.

When truncating the substitution string to the length specified in the
format string, head[len] = '\0' could write outside the buffer if that
length was too large.
2007-02-01 20:18:52 +01:00
Kay Sievers
eef5447934 let $attr{symlink} return the last element of the path
Example for /block/sda:
  SUBSYSTEMS="scsi", ENV{COMMENT}="$attr{driver}"
sets COMMENT=sd
  SUBSYSTEMS="pci", ENV{COMMENT}="$attr{driver}"
sets COMMENT=ata_piix
2006-09-05 02:18:06 +02:00
Kay Sievers
ac528431dd fix ENV{TEST}="Test: $env{TEST}" 2006-09-05 00:50:25 +02:00
Kay Sievers
27b77df44d update source file headers 2006-08-28 00:29:11 +02:00
Kay Sievers
cea61f5c03 use fnmatch() instead of our own pattern match code 2006-08-24 09:03:15 +02:00
Kay Sievers
d0c8cb7d9c introduce ATTR{file}="value" to set sysfs attributes 2006-08-20 18:16:27 +02:00
Kay Sievers
95776dc6ec consistent key naming to match only the event device or include all parent devices
This scheme is more consistent and makes it obvious if a match happens
against the event device only, or the full chain of parent devices.

The old key names are now:
  BUS -> SUBSYSTEMS
  ID -> KERNELS
  SYSFS -> ATTRS
  DRIVER -> DRIVERS

Match keys for the event device:
  KERNEL
  SUBSYSTEM
  ATTR
  DRIVER (in a future release, for now the same as DRIVERS)

Match keys for all devices along the parent device chain:
  KERNELS
  SUBSYSTEMS
  ATTRS
  DRIVERS

ID, BUS, SYSFS are no longer mentioned in the man page but still work.
DRIVER must be converted to DRIVERS to match the new scheme. For now,
an error is logged, if DRIVER is used. In a future release, the DRIVER
key behaviour will change.
2006-08-19 16:06:25 +02:00
Kay Sievers
c8ff4b3db4 remove broken %e enumeration 2006-07-04 12:27:00 +02:00
Kay Sievers
8912051213 remove MODALIAS key and substitution 2006-06-07 16:00:34 +02:00
Kay Sievers
3d6d12c6b1 vol_id: fix logging from libvolume_id's log function 2006-04-28 17:52:09 +02:00