From 8c497b76081f1307590cd09f726ca52b1f84ee3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Sun, 5 Oct 2014 17:38:48 +0200 Subject: [PATCH] only try to copy the binary to make the LED blink if it exists. --- copy_to_final.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/copy_to_final.sh b/copy_to_final.sh index 844f664..0eb0543 100755 --- a/copy_to_final.sh +++ b/copy_to_final.sh @@ -22,7 +22,9 @@ fi tar -cvpzf backup.tar.gz -C fs/ . tar -xzf backup.tar.gz -C ${CHROOT_PATH}/ chown root:root ${CHROOT_PATH}/etc/sudoers -cp deb/led ${CHROOT_PATH}/usr/sbin/led +if [ -f deb/led ]; then + cp deb/led ${CHROOT_PATH}/usr/sbin/led +fi cp -rf midi ${CHROOT_PATH}/opt/ # needed just once, make sure the size of the partition is correct