Skip to content

Commit

Permalink
fix(hwdb): fix formatting
Browse files Browse the repository at this point in the history
Related: RHEL-9479
  • Loading branch information
pvalena committed Nov 14, 2023
1 parent 85ba5ac commit 607ab1c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules.d/95hwdb/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 607ab1c

Please sign in to comment.