summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
authorjoeyh <joeyh>2006-06-12 01:40:56 +0000
committerjoeyh <joeyh>2006-06-12 01:40:56 +0000
commitbf38096fa55c43807885d5c531a067f5781a945b (patch)
tree4034404a2b8ca2c448dca07ab31d51d73fbfe841 /autoscripts
parent4ac0a7b9288220f00c948225ac659419ffc08110 (diff)
r1932: split the scripts for the two cases, undo behavior change
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 0460eaaf..f17dc2da 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 00000000..f5e13b56
--- /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 d710791d..c2577dd2 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 00000000..35db8718
--- /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