more updates

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-04-08 18:31:19 -07:00
parent ea3259d67d
commit 64c18f134e
3 changed files with 27 additions and 2 deletions

View File

@ -23,12 +23,22 @@ func dhclient() {
for { for {
log.Println("need to check the status of wpa_supplicant and dhclient here") log.Println("need to check the status of wpa_supplicant and dhclient here")
time.Sleep(5000 * time.Millisecond) // check every few seconds time.Sleep(1000 * time.Millisecond)
} }
} }
func main() { func main() {
parseConfig() parseConfig()
dhclient() go dhclient()
for {
time.Sleep(1000 * time.Millisecond)
ping := shell.Run("ping -c 1 localhost")
log.Println("ping returned ", ping)
if (ping == 0) {
break
}
}
shell.Run("/root/go/bin/get-image")
} }

15
get-image/test/main.go Normal file
View File

@ -0,0 +1,15 @@
package main
import "os"
import "log"
import "git.wit.com/jcarr/shell"
func main() {
shell.Run("dialog --ascii-lines --msgbox 'Flash_Image_Completed' 10 70")
log.Println("INSTALL SUCCEEDED")
log.Println("INSTALL SUCCEEDED")
os.Exit(0)
}

BIN
get-image/test/test Executable file

Binary file not shown.