mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 04:57:55 +00:00
flash-gui: clean up ROM list
Exclude dot folders from ROM search path, so that files in .Trash (eg) aren't shown. Sort the remaining options. Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
This commit is contained in:
parent
e0e0019250
commit
3306dbb66d
@ -88,7 +88,7 @@ while true; do
|
||||
--yesno "This requires you insert a USB drive containing:\n* Your BIOS image (*.rom)\n\nAfter you select this file, this program will reflash your BIOS\n\nDo you want to proceed?" 16 90) then
|
||||
mount_usb
|
||||
if grep -q /media /proc/mounts ; then
|
||||
find /media -name '*.rom' > /tmp/filelist.txt
|
||||
find /media ! -path '*/\.*' -type f -name '*.rom' | sort > /tmp/filelist.txt
|
||||
file_selector "/tmp/filelist.txt" "Choose the ROM to flash"
|
||||
if [ "$FILE" == "" ]; then
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user