diff --git a/modules.d/95hwdb/module-setup.sh b/modules.d/95hwdb/module-setup.sh index 16365377..7e4b1af6 100755 --- a/modules.d/95hwdb/module-setup.sh +++ b/modules.d/95hwdb/module-setup.sh @@ -11,11 +11,12 @@ install() { local hwdb_bin # systemd-hwdb ships the file in /etc, with /usr/lib as an alternative. - # Therefore consider this location as preferred for configuration. + # The alternative location is preferred, as we can consider it being user + # configuration. hwdb_bin="${udevdir}"/hwdb.bin - if [[ ! -r "${hwdb_bin}" ]]; then - hwdb_bin="${udevconfdir}"/hwdb.bin + if [[ ! -r ${hwdb_bin} ]]; then + hwdb_bin="${udevconfdir}"/hwdb.bin fi if [[ $hostonly ]]; then