Add dpatch to build-depends
[live-initramfs-grml.git] / debian / patches / 02_more_verbose_toram.diff
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 02_more_verbose_toram.dpatch by  <mika@grml.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Support more verbose version of toram via rsync
6
7 @DPATCH@
8
9 --- a/scripts/live      2007-11-01 22:25:41.567739580 +0100
10 +++ b/scripts/live      2007-11-01 23:03:02.413731337 +0100
11 @@ -609,9 +609,19 @@
12         else
13                 if [ -n "${MODULETORAMFILE}" ]
14                 then
15 -                       cp ${MODULETORAMFILE} ${copyto} # copy only the filesystem module
16 -               else
17 -                       cp -a ${copyfrom}/* ${copyto}   # "cp -a" from busybox also copies hidden files
18 +                        log_begin_msg "Copying $MODULETORAMFILE to RAM" >/dev/console
19 +                       if [ -x /usr/bin/rsync ] ; then
20 +                          rsync -a --progress ${MODULETORAMFILE} ${copyto} 1>/dev/console # copy only the filesystem module
21 +                       else
22 +                          cp ${MODULETORAMFILE} ${copyto} # copy only the filesystem module
23 +                       fi
24 +               else
25 +                        log_begin_msg "Copying medium to RAM" >/dev/console
26 +                       if [ -x /usr/bin/rsync ] ; then
27 +                          rsync -a --progress ${copyfrom}/* ${copyto} 1>/dev/console  # "cp -a" from busybox also copies hidden files
28 +                       else
29 +                          cp -a ${copyfrom}/* ${copyto}   # "cp -a" from busybox also copies hidden files
30 +                       fi
31                 fi
32  
33                 livefs_root