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 "log"
import "time" import "time"
import "fmt" import "fmt"
import "os"
/* /*
import "reflect" import "reflect"
*/ */
@ -22,10 +23,14 @@ func dhclient() {
shell.Run("dhclient wlan0") shell.Run("dhclient wlan0")
for { for {
fmt.Print(" should check progress here") fmt.Println(" running")
time.Sleep(20000 * time.Millisecond) 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 return
} }
}
} }
func main() { func main() {