9 lines
320 B
Bash
Executable File
9 lines
320 B
Bash
Executable File
#!/bin/sh
|
|
|
|
systemd-hwdb --root="${TARGET_DIR}" --usr --strict update
|
|
# Even with --usr, systemd-hwdb seems to always create hwdb.bin in
|
|
# /etc/udev. Perhaps this is a bug when specifying --root.
|
|
if [ -f "${TARGET_DIR}"/etc/udev/hwdb.bin ]; then
|
|
mv "${TARGET_DIR}"/etc/udev/hwdb.bin "${TARGET_DIR}"/usr/lib/udev/
|
|
fi
|