summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postinst-modules3
-rw-r--r--autoscripts/postinst-update-modules5
-rw-r--r--autoscripts/postrm-modules3
-rw-r--r--autoscripts/postrm-update-modules3
4 files changed, 8 insertions, 6 deletions
diff --git a/autoscripts/postinst-modules b/autoscripts/postinst-modules
index 0460eaa..f17dc2d 100644
--- a/autoscripts/postinst-modules
+++ b/autoscripts/postinst-modules
@@ -1,7 +1,4 @@
if [ "$1" = "configure" ]; then
- if [ -x "`which update-modules 2>/dev/null`" ]; then
- update-modules >/dev/null || [ "$?" = 3 ]
- fi
if [ -e /boot/System.map-#KVERS# ]; then
depmod -a -F /boot/System.map-#KVERS# #KVERS# || true
fi
diff --git a/autoscripts/postinst-update-modules b/autoscripts/postinst-update-modules
new file mode 100644
index 0000000..f5e13b5
--- /dev/null
+++ b/autoscripts/postinst-update-modules
@@ -0,0 +1,5 @@
+if [ "$1" = "configure" ]; then
+ if [ -x "`which update-modules 2>/dev/null`" ]; then
+ update-modules >/dev/null || [ "$?" = 3 ]
+ fi
+fi
diff --git a/autoscripts/postrm-modules b/autoscripts/postrm-modules
index d710791..c2577dd 100644
--- a/autoscripts/postrm-modules
+++ b/autoscripts/postrm-modules
@@ -1,6 +1,3 @@
-if [ -x "`which update-modules 2>/dev/null`" ]; then
- update-modules >/dev/null || [ "$?" = 3 ]
-fi
if [ -e /boot/System.map-#KVERS# ]; then
depmod -a -F /boot/System.map-#KVERS# #KVERS# || true
fi
diff --git a/autoscripts/postrm-update-modules b/autoscripts/postrm-update-modules
new file mode 100644
index 0000000..35db871
--- /dev/null
+++ b/autoscripts/postrm-update-modules
@@ -0,0 +1,3 @@
+if [ -x "`which update-modules 2>/dev/null`" ]; then
+ update-modules >/dev/null || [ "$?" = 3 ]
+fi