move to storing this info in a config file
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
fe92700a1d
commit
832d50207f
|
@ -12,3 +12,10 @@ arr1:
|
||||||
- lo
|
- lo
|
||||||
- wifi0
|
- wifi0
|
||||||
- docker0
|
- docker0
|
||||||
|
|
||||||
|
dists:
|
||||||
|
- Debian x32
|
||||||
|
- Armbian
|
||||||
|
- Manjaro
|
||||||
|
- Android
|
||||||
|
- bob
|
||||||
|
|
|
@ -113,11 +113,10 @@ func makeBurnSDcardPage() *ui.Box {
|
||||||
vbox := addGroupBox(hbox, "Select Distribution")
|
vbox := addGroupBox(hbox, "Select Distribution")
|
||||||
|
|
||||||
cbox := ui.NewCombobox()
|
cbox := ui.NewCombobox()
|
||||||
cbox.Append("Armbian")
|
for _, addr := range config.Strings("dists") {
|
||||||
cbox.Append("Debian")
|
log.Println("addr =", addr)
|
||||||
cbox.Append("Manjaro")
|
cbox.Append(addr)
|
||||||
cbox.Append("q4os")
|
}
|
||||||
cbox.Append("android")
|
|
||||||
cbox.OnSelected(selectDrive)
|
cbox.OnSelected(selectDrive)
|
||||||
vbox.Append(cbox, false)
|
vbox.Append(cbox, false)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue