replace wlan0 to sysgo.WifiDev

move execCmd to UI.ExecCmd

add read app-local.ini in config.go for dev/ run launcher out of
GameShell
This commit is contained in:
cuu
2021-10-10 12:44:05 +08:00
parent d463dd10ec
commit d3f3a4350b
11 changed files with 94 additions and 74 deletions

View File

@@ -151,7 +151,7 @@ func (self *GateWayPage) GenList() {
last_height := 0
var drivers = [][2]string{[2]string{"usb0","USB Ethernet"},
[2]string{"wlan0","Wi-Fi"}}
[2]string{sysgo.WifiDev,"Wi-Fi"}}
for _,u := range drivers {
@@ -318,8 +318,8 @@ func (self *GateWayPage) OnLoadCb() {
if len(out) > 7 {
if strings.Contains(out,"usb0") {
thedrv = "usb0"
}else if strings.Contains(out,"wlan0") {
thedrv = "wlan0"
}else if strings.Contains(out,sysgo.WifiDev) {
thedrv = sysgo.WifiDev
}
}
}