Browse Source

Stefan Fiedler:


			
			
				rocklinux
			
			
		
Stefan Fiedler 18 years ago
parent
commit
ee7b03c813
2 changed files with 15 additions and 0 deletions
  1. +7
    -0
      package/base/udev/scripts/modalias_ieee1394
  2. +8
    -0
      package/base/udev/scripts/modalias_serio

+ 7
- 0
package/base/udev/scripts/modalias_ieee1394

@ -0,0 +1,7 @@
#!/bin/sh -e
# this is required for kernels older than 2.6.14
[ "$VENDOR_ID" -a "$MODEL_ID" -a "$SPECIFIER_ID" -a "$VERSION" ] || exit 1
printf "MODALIAS='ieee1394:ven%08Xmo%08Xsp%08Xver%08X'\n" \
$((0x$VENDOR_ID)) $((0x$MODEL_ID)) $((0x$SPECIFIER_ID)) $((0x$VERSION))

+ 8
- 0
package/base/udev/scripts/modalias_serio

@ -0,0 +1,8 @@
#!/bin/sh -e
# this is required for kernels older than 2.6.13
[ "$SERIO_TYPE" -a "$SERIO_PROTO" -a "$SERIO_ID" -a "$SERIO_EXTRA" ] || exit 1
printf "MODALIAS='serio:ty%02Xpr%02Xid%02Xex%02X'\n" \
$((0x$SERIO_TYPE)) $((0x$SERIO_PROTO)) $((0x$SERIO_ID)) \
$((0x$SERIO_EXTRA))

Loading…
Cancel
Save