| Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | #!/bin/sh | 
| Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 2 | # | 
|  | 3 | # SPDX-License-Identifier: MIT | 
|  | 4 | # | 
| Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 5 |  | 
|  | 6 | set -e | 
|  | 7 |  | 
| Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 8 | case "${PREFERRED_PROVIDER_udev}" in | 
|  | 9 | systemd) | 
|  | 10 | UDEV_EXTRA_ARGS="--usr" | 
|  | 11 | UDEVLIBDIR="${rootlibexecdir}" | 
|  | 12 | ;; | 
|  | 13 |  | 
|  | 14 | *) | 
|  | 15 | UDEV_EXTRA_ARGS="" | 
|  | 16 | UDEVLIBDIR="${sysconfdir}" | 
|  | 17 | ;; | 
|  | 18 | esac | 
|  | 19 |  | 
|  | 20 | PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}udevadm hwdb --update --root $D ${UDEV_EXTRA_ARGS} | 
|  | 21 | chown root:root $D${UDEVLIBDIR}/udev/hwdb.bin |