summaryrefslogtreecommitdiff
path: root/system/tp_smapi/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'system/tp_smapi/doinst.sh')
-rw-r--r--system/tp_smapi/doinst.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/system/tp_smapi/doinst.sh b/system/tp_smapi/doinst.sh
index f61efdf685..6510094161 100644
--- a/system/tp_smapi/doinst.sh
+++ b/system/tp_smapi/doinst.sh
@@ -1,2 +1,4 @@
-chroot . /sbin/depmod -a
-
+# Re-generate modules.dep and map files.
+if [ -x sbin/depmod ]; then
+ chroot . /sbin/depmod -a @KERNEL@ 1> /dev/null 2> /dev/null
+fi