more limited output

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-04-10 11:05:28 -07:00
parent d825ea5d13
commit cebd52ee79
1 changed files with 8 additions and 3 deletions

View File

@ -4,6 +4,7 @@ package main
import "log"
import "time"
import "fmt"
import "os"
/*
import "reflect"
*/
@ -22,9 +23,13 @@ func dhclient() {
shell.Run("dhclient wlan0")
for {
fmt.Print(" should check progress here")
time.Sleep(20000 * time.Millisecond)
return
fmt.Println(" running")
time.Sleep(2000 * time.Millisecond)
filename := "/tmp/wit-install-done"
if _, err := os.Stat(filename); !os.IsNotExist(err) {
log.Println("filename", filename, "does exist")
return
}
}
}