From 8f7c537d7120c9461359591d5c84ff10a0887489 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Mon, 6 Mar 2017 11:58:32 +0000 Subject: [PATCH] partition_setup.sh: Only copy files --- export-noobs/00-release/files/partition_setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/export-noobs/00-release/files/partition_setup.sh b/export-noobs/00-release/files/partition_setup.sh index cff6d29..3a99342 100644 --- a/export-noobs/00-release/files/partition_setup.sh +++ b/export-noobs/00-release/files/partition_setup.sh @@ -16,15 +16,15 @@ sed /tmp/1/cmdline.txt -i -e "s|root=/dev/[^ ]*|root=${part2}|" sed /tmp/2/etc/fstab -i -e "s|^.* / |${part2} / |" sed /tmp/2/etc/fstab -i -e "s|^.* /boot |${part1} /boot |" -if [ -e /mnt/ssh ]; then +if [ -f /mnt/ssh ]; then cp /mnt/ssh /tmp/1/ fi -if [ -e /mnt/ssh.txt ]; then +if [ -f /mnt/ssh.txt ]; then cp /mnt/ssh.txt /tmp/1/ fi -if [ -e /settings/wpa_supplicant.conf ]; then +if [ -f /settings/wpa_supplicant.conf ]; then cp /settings/wpa_supplicant.conf /tmp/1/ fi