diff options
Diffstat (limited to 'nonsystemd/eudev/udev-hook')
-rw-r--r-- | nonsystemd/eudev/udev-hook | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/nonsystemd/eudev/udev-hook b/nonsystemd/eudev/udev-hook deleted file mode 100644 index d9c793f45..000000000 --- a/nonsystemd/eudev/udev-hook +++ /dev/null @@ -1,16 +0,0 @@ -#!/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/udevadm hwdb --update ;; - udev-reload) udevd_live; /usr/bin/udevadm control --reload ;; - *) echo >&2 " Invalid operation '$1'"; exit 1 ;; -esac - -exit 0 |