more limited output
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
d825ea5d13
commit
cebd52ee79
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue