]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
mkefidisk.sh: Cope with translations and modelnames with 'Disk' in it.
authorKoen Kooi <koen@dominion.thruhere.net>
Fri, 8 Mar 2013 13:01:45 +0000 (14:01 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 10 Mar 2013 04:36:50 +0000 (04:36 +0000)
commit5848c5c745c3e7c9b143323f99fd1feb0a7f3ccb
tree510f9909a52abf34cc5e0ecfd2b1755976d637ba
parent5ecdb3edba8238661815ca5d90b05215f06f4249
mkefidisk.sh: Cope with translations and modelnames with 'Disk' in it.

The script greps for 'Disk', which doesn't work when your crazy Dutch distro has parted call it 'Schijf', so force LANG=C.

The second problem is that 'Disk' might be a substring in the Model entry:

[root@Angstrom-F16-vm-rpm contrib] # parted /dev/sdc  unit mb print
Model: SanDisk SDDR-113 (scsi)
Disk /dev/sdc: 3905MB

(From OE-Core rev: 2e404930f6fc7d818d2f429793e84bce77163afd)

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/contrib/mkefidisk.sh