mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
278 B

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