summaryrefslogtreecommitdiff
path: root/package/eudev/files/udev.postinst
diff options
context:
space:
mode:
authorBALATON Zoltan <balaton@eik.bme.hu>2016-05-01 23:55:47 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-05-02 21:52:01 +0200
commit9af3bf5e16b93c8847d499598c96327dd079ab83 (patch)
tree0af2a01a7c9acd8a7d1d82c56b4a90c7184e4c1c /package/eudev/files/udev.postinst
parent81e9be80fde576bca47295dce0ce0fcfaa8878a6 (diff)
eudev: depend on libkmod and fix installation to avoid warnings in log
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Diffstat (limited to 'package/eudev/files/udev.postinst')
-rw-r--r--package/eudev/files/udev.postinst12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/eudev/files/udev.postinst b/package/eudev/files/udev.postinst
new file mode 100644
index 000000000..67c5d00df
--- /dev/null
+++ b/package/eudev/files/udev.postinst
@@ -0,0 +1,12 @@
+#!/bin/sh
+. "$IPKG_INSTROOT/etc/functions.sh"
+add_group cdrom $(get_next_gid)
+add_group dialout $(get_next_gid)
+add_group disk $(get_next_gid)
+add_group input $(get_next_gid)
+add_group kmem $(get_next_gid)
+add_group lp $(get_next_gid)
+add_group tape $(get_next_gid)
+echo Generating hwdb
+udevadm hwdb --update --root="$IPKG_INSTROOT"
+rm -rf "$IPKG_INSTROOT/etc/udev/hwdb.d"