Skip to content

Commit

Permalink
Merge pull request #250 from AuxXxilium/dev
Browse files Browse the repository at this point in the history
eudevlite: copy hwdb to user path
  • Loading branch information
AuxXxilium authored Jan 13, 2024
2 parents 7b5f99e + 75ff978 commit 22e65a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eudevlite/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ if [ "${1}" = "modules" ]; then
fi
[ -e /proc/sys/kernel/hotplug ] && printf '\000\000\000\000' >/proc/sys/kernel/hotplug
chmod 755 /usr/sbin/udevd /usr/bin/kmod /usr/bin/udevadm /usr/lib/udev/*
cp -f /etc/udev/hwdb.bin /usr/lib/udev/hwdb.bin
/usr/sbin/depmod -a
/usr/sbin/udevd -d || {
echo "FAIL"
Expand All @@ -35,6 +36,8 @@ elif [ "${1}" = "late" ]; then
cp -vf /usr/lib/udev/rules.d/* /tmpRoot/usr/lib/udev/rules.d/
mkdir -p /tmpRoot/etc/udev
cp -vf /etc/udev/hwdb.bin /tmpRoot/etc/udev/hwdb.bin
mkdir -p /tmpRoot/lib/udev
cp -vf /etc/udev/hwdb.bin /tmpRoot/usr/lib/udev/hwdb.bin
[ -f "/tmpRoot/lib/systemd/system/udevrules.service" ] && rm -f "/tmpRoot/lib/systemd/system/udevrules.service"
DEST="/tmpRoot/lib/systemd/system/udevrules.service"
echo "[Unit]" >${DEST}
Expand Down

0 comments on commit 22e65a0

Please sign in to comment.