summaryrefslogtreecommitdiff
path: root/src/kernel-install/50-depmod.install
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel-install/50-depmod.install')
-rw-r--r--src/kernel-install/50-depmod.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/kernel-install/50-depmod.install b/src/kernel-install/50-depmod.install
new file mode 100644
index 0000000000..68c24bed7a
--- /dev/null
+++ b/src/kernel-install/50-depmod.install
@@ -0,0 +1,8 @@
+#!/bin/bash
+# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
+# ex: ts=8 sw=4 sts=4 et filetype=sh
+
+[[ $1 == "add" ]] || exit 0
+[[ $2 ]] || exit 1
+
+exec depmod -a "$2"