summaryrefslogtreecommitdiff
path: root/debian/mdadm.preinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/mdadm.preinst')
-rw-r--r--debian/mdadm.preinst12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/mdadm.preinst b/debian/mdadm.preinst
new file mode 100644
index 00000000..9cffd3da
--- /dev/null
+++ b/debian/mdadm.preinst
@@ -0,0 +1,12 @@
+#!/bin/sh -eu
+# Copyright © 2006 martin f. krafft <madduck@debian.org>
+# Distributed under the terms of the Artistic Licence.
+
+# migrate old configuration from *way back then*
+DEBIANCONFIG=/etc/default/mdadm
+OLDCONFIG=/etc/mdadm/debian.conf
+if [ -s $OLDCONFIG ] && [ ! -f $DEBIANCONFIG ]; then
+ mv $OLDCONFIG $DEBIANCONFIG
+fi
+
+#DEBHELPER#