#!/bin/bash set -ex set -o pipefail mkdir -p /run/udev/rules.d/ test ! -f /run/udev/tags/added/c1:3 test ! -f /run/udev/tags/changed/c1:3 udevadm info /dev/null | grep -E 'E: (TAGS|CURRENT_TAGS)=.*:(added|changed):' && exit 1 cat >/run/udev/rules.d/50-testsuite.rules <