diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-07-21 17:27:13 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-07-24 00:58:10 -0400 |
commit | 5cda8090484becc96da80c15f1db5b8c137a79b9 (patch) | |
tree | 633acd19dd3ac32e1f5a58285af2788a070fe0e4 /libre/notsystemd/udev-hook | |
parent | b24f38ea39ad553c4cc428b189687ac6eccf1cfa (diff) | |
download | abslibre-5cda8090484becc96da80c15f1db5b8c137a79b9.tar.gz abslibre-5cda8090484becc96da80c15f1db5b8c137a79b9.tar.bz2 abslibre-5cda8090484becc96da80c15f1db5b8c137a79b9.zip |
libre/notsystemd: Update to 239.1
Diffstat (limited to 'libre/notsystemd/udev-hook')
-rw-r--r-- | libre/notsystemd/udev-hook | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libre/notsystemd/udev-hook b/libre/notsystemd/udev-hook new file mode 100644 index 000000000..61d853293 --- /dev/null +++ b/libre/notsystemd/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 |