diff options
author | madduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464> | 2006-09-16 11:03:00 +0000 |
---|---|---|
committer | madduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464> | 2006-09-16 11:03:00 +0000 |
commit | ebe70cb44c38794acecfa02ed0c2b1c5a577cb36 (patch) | |
tree | d00ba9b9b044250a301fae46ac84eb2ccf5d4a64 /debian/mdadm.config | |
parent | 650c05fd5496661231cda1435598f8c2364e08f3 (diff) |
Added stripped implementation of debconf-escape to .config file to cater
for upgrades from systems with older debconf versions.
Diffstat (limited to 'debian/mdadm.config')
-rw-r--r-- | debian/mdadm.config | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/mdadm.config b/debian/mdadm.config index 9fdde4dc..1376e578 100644 --- a/debian/mdadm.config +++ b/debian/mdadm.config @@ -79,6 +79,19 @@ get_initrdstart() { db_capb escape +if [ ! -x "$(command -v debconf-escape)" ]; then + debconf-escape() + { # copied from debconf 1.4.72: + perl -e ' + while (<>) { + s/\\/\\\\/g; + s/\n/\\n/g; + print; + } + ' + } +fi + msg=intro; suffix=''; error=0 while true; do db_metaget mdadm/initrdstart_msg_${msg} extended_description || : |