50bc2e972987aee27a1d54320d23f3e4f6816def
[live-initramfs-grml.git] / debian / patches / 06_grml_version_file.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 06_grml_version_file.dpatch.dpatch by  <mika@grml.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Copy /etc/grml_version to initrd
6
7 @DPATCH@
8
9 diff -r 9d601dc7dc9f hooks/live
10 --- a/hooks/live        Sat Aug 16 11:03:31 2008 +0200
11 +++ b/hooks/live        Sat Aug 16 11:06:36 2008 +0200
12 @@ -33,6 +33,11 @@
13  
14         mkdir -p "${DESTDIR}"/etc
15         cp /etc/live.conf "${DESTDIR}"/etc
16 +fi
17 +
18 +if [ -r /etc/grml_version ]
19 +then
20 +       cp /etc/grml_version "${DESTDIR}"/etc
21  fi
22  
23  # Directories