mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-19 10:22:41 +01:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user