From 1679eef96eb3a5b5446d9be586c3070ed750739a Mon Sep 17 00:00:00 2001 From: bill-auger Date: Fri, 18 Jan 2019 19:19:46 -0500 Subject: [systemd]: rebuild x86_64 in libre-testing --- libre-testing/systemd/udev-hook | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 libre-testing/systemd/udev-hook (limited to 'libre-testing/systemd/udev-hook') diff --git a/libre-testing/systemd/udev-hook b/libre-testing/systemd/udev-hook new file mode 100644 index 000000000..61d853293 --- /dev/null +++ b/libre-testing/systemd/udev-hook @@ -0,0 +1,18 @@ +#!/bin/sh -e + +udevd_live() { + if [ ! -d /run/udev ]; then + echo >&2 " Skipped: Device manager is not running." + exit 0 + fi +} + +case $1 in + hwdb) /usr/bin/systemd-hwdb --usr update ;; + + udev-reload) udevd_live; /usr/bin/udevadm control --reload ;; + + *) echo >&2 " Invalid operation '$1'"; exit 1 ;; +esac + +exit 0 -- cgit v1.2.3