From 980fc69f3826f92bc3bd6692a9dedb95600dde9c Mon Sep 17 00:00:00 2001 From: Stefan Fiedler Date: Sat, 10 Jun 2006 09:20:39 +0000 Subject: [PATCH] Stefan Fiedler: modutils, module-init-tools: add postinstall script for running depmod -ae NOTE: partially tested [2006053117351225546] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@7635 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/module-init-tools/postinstall.sh | 7 +++++++ package/base/modutils/postinstall.sh | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 package/base/module-init-tools/postinstall.sh create mode 100644 package/base/modutils/postinstall.sh diff --git a/package/base/module-init-tools/postinstall.sh b/package/base/module-init-tools/postinstall.sh new file mode 100644 index 000000000..a1a01109a --- /dev/null +++ b/package/base/module-init-tools/postinstall.sh @@ -0,0 +1,7 @@ +module_suffix="\.ko" + +all_touched "lib/modules/.*$module_suffix" | cut -f4 -d"/" | sort -u | +while read kernel_version ; do + echo "Kernel modules: running depmod -ae $kernel_version ..." + depmod -ae "$kernel_version" +done diff --git a/package/base/modutils/postinstall.sh b/package/base/modutils/postinstall.sh new file mode 100644 index 000000000..a618314a8 --- /dev/null +++ b/package/base/modutils/postinstall.sh @@ -0,0 +1,7 @@ +module_suffix="\.o" + +all_touched "lib/modules/.*$module_suffix" | cut -f4 -d"/" | sort -u | +while read kernel_version ; do + echo "Kernel modules: running depmod -ae $kernel_version ..." + depmod -ae "$kernel_version" +done