mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 21:43:11 +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
|
--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
|
mount_usb
|
||||||
if grep -q /media /proc/mounts ; then
|
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"
|
file_selector "/tmp/filelist.txt" "Choose the ROM to flash"
|
||||||
if [ "$FILE" == "" ]; then
|
if [ "$FILE" == "" ]; then
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user