read only first 10 bytes only

read only first 10 bytes only because if we put MC with 16Gb e should wait a lot head to finish
This commit is contained in:
Elin Angelov 2016-03-17 15:46:30 +02:00
parent 50f483c001
commit 40ee59671c

View File

@ -10,7 +10,7 @@ getPendriveSize()
# details: https://dev.openwrt.org/ticket/10716#comment:4
if [ -e /dev/sda ]; then
# force re-read of the partition table
head /dev/sda >/dev/null
head -c 10 /dev/sda >/dev/null
fi
if (grep -q sda /proc/partitions) then