Automatically refresh patches that need it
[live-boot-grml.git] / debian / patches / 03_grml_version_file_hook.patch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 03_grml_version_file_hook.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 Index: live-boot-grml/hooks/live
10 ===================================================================
11 --- live-boot-grml.orig/hooks/live      2011-12-06 22:10:13.000000000 +0100
12 +++ live-boot-grml/hooks/live   2011-12-06 22:10:17.000000000 +0100
13 @@ -40,6 +40,12 @@
14         done
15  fi
16  
17 +# Grml version information:
18 +if [ -r /etc/grml_version ]
19 +then
20 +       cp /etc/grml_version "${DESTDIR}"/etc
21 +fi
22 +
23  # Handling live-boot
24  
25  if [ ! -e /usr/share/live-boot ]