#!/bin/sh -e
# this is required for ALL kernels so far

[ "$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))
