Including rsync conditionally.
authorDaniel Baumann <daniel@debian.org>
Thu, 31 Dec 2009 08:06:49 +0000 (09:06 +0100)
committerDaniel Baumann <daniel@debian.org>
Sun, 31 Jan 2010 12:58:13 +0000 (13:58 +0100)
hooks/live

index aa7b020..6862407 100755 (executable)
@@ -100,7 +100,10 @@ manual_add_modules ext4
 # Filesystem: jffs2
 manual_add_modules jffs2
 
-copy_exec /usr/bin/rsync /bin
+if [ -x /usr/bin/rsync ]
+then
+       copy_exec /usr/bin/rsync /bin
+fi
 
 # Filesystem: squashfs
 copy_exec /sbin/losetup /sbin