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

#!/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))