summaryrefslogtreecommitdiff
path: root/debian/mdadm.preinst
diff options
context:
space:
mode:
authormadduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464>2006-07-08 22:24:52 +0000
committermadduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464>2006-07-08 22:24:52 +0000
commit724cca90e642a6bfbdd212dbf9b838187b27267e (patch)
treeb852ad629769e0c9738f7170eb9c861f4be25bec /debian/mdadm.preinst
parentc1aba7fa922cc2762f4044efb5fb574981a71703 (diff)
Load newtrunk into mdadm/trunk.
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#