Use quilt instead of dpatch
[live-boot-grml.git] / debian / patches / 03_grml_version_file_hook.patch
diff --git a/debian/patches/03_grml_version_file_hook.patch b/debian/patches/03_grml_version_file_hook.patch
new file mode 100644 (file)
index 0000000..df27676
--- /dev/null
@@ -0,0 +1,23 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03_grml_version_file_hook.dpatch by <mika@grml.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Copy /etc/grml_version to initrd
+
+@DPATCH@
+
+--- a/hooks/live
++++ b/hooks/live
+@@ -40,6 +40,12 @@
+       done
+ fi
++# Grml version information:
++if [ -r /etc/grml_version ]
++then
++       cp /etc/grml_version "${DESTDIR}"/etc
++fi
++
+ # Handling live-boot
+ [ "${QUIET}" ] || echo -n " "core