forked from Bitmessage/sysdeploy
fix: sleep at a different spot
This commit is contained in:
parent
390e60e1e5
commit
6ff02db2d2
|
@ -16,7 +16,6 @@ function setup_drive
|
|||
until [ -b "$drive"1 ] || [ -b "$drive"p1 ]; do
|
||||
sleep 1
|
||||
done
|
||||
sleep 5
|
||||
}
|
||||
|
||||
function rename_partition
|
||||
|
|
|
@ -8,7 +8,7 @@ function dev_from_partnum()
|
|||
if [ ! -b "$partition" ]; then
|
||||
partition="$drive"p"$partnum"
|
||||
if [ ! -b "$partition" ]; then
|
||||
echo "Can't find first partition for \"$drive\""
|
||||
echo "Can't find ${partnum}-th partition for \"$drive\""
|
||||
|
||||
exit 1
|
||||
fi
|
||||
|
@ -49,6 +49,7 @@ function install_syslinux()
|
|||
dd bs=440 count=1 conv=notrunc \
|
||||
if=/usr/lib/syslinux/mbr/gptmbr.bin of="$drive"
|
||||
|
||||
sleep 5
|
||||
dev_from_partnum "$drive" 1
|
||||
syslinux "$partition"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user