#!/bin/sh

# udevadm emulation for udev < 117

PROG="${0##*/}"

[ $# -ne 0 ] || {
	echo "$PROG: usage: $PROG <command> [<options>...]" 1>&2
	exit 1
}

command="$1"
shift
case "$command" in
	trigger)
		exec /sbin/udevtrigger "$@" ;;
	settle)
		exec /sbin/udevsettle "$@" ;;
	*)
		echo "$PROG: unsupported command \"$command\"" 1>&2
		exit 1
		;;
esac
