Including rsync conditionally.
authorDaniel Baumann <daniel@debian.org>
Thu, 31 Dec 2009 08:06:49 +0000 (09:06 +0100)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:48:07 +0000 (17:48 +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