@ -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))
@ -0,0 +1,8 @@
# 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))