mirror of
https://github.com/RoganDawes/P4wnP1_aloa.git
synced 2025-03-17 13:21:50 +01:00
Fix for #81
This commit is contained in:
parent
e7e5d3f7d2
commit
6c4b84a2b3
11
rbuild_debug.sh
Executable file
11
rbuild_debug.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
echo compiling ...
|
||||
env GOOS=linux GOARCH=arm GOARM=6 go build -gcflags "all=-N -l" -o build/P4wnP1_service cmd/P4wnP1_service/P4wnP1_service.go
|
||||
env GOOS=linux GOARCH=arm GOARM=6 go build -o build/P4wnP1_cli cmd/P4wnP1_cli/P4wnP1_cli.go
|
||||
env GOOS=linux GOARCH=arm GOARM=6 go build -o /tmp/ntest ntest.go
|
||||
|
||||
echo uploading ...
|
||||
scp /tmp/ntest 172.16.0.1:~/P4wnP1/build
|
||||
scp build/P4wnP1_service 172.16.0.1:~/P4wnP1/build
|
||||
scp build/P4wnP1_cli 172.16.0.1:~/P4wnP1/build
|
||||
|
@ -503,7 +503,8 @@ type hostapdOutMonitor struct {
|
||||
func (m *hostapdOutMonitor) Write(p []byte) (n int, err error) {
|
||||
// if result already received, the write could exit (early out)
|
||||
if m.resultReceived.IsSet() {
|
||||
return n, nil
|
||||
// fix endless loop of writing 'CTRL-EVENT-TERMINATING'
|
||||
return len(p), nil
|
||||
}
|
||||
|
||||
// check if buffer contains relevant strings (assume write is called line wise by the hosted process
|
||||
@ -557,7 +558,7 @@ type wpaSupplicantOutMonitor struct {
|
||||
func (m *wpaSupplicantOutMonitor) Write(p []byte) (n int, err error) {
|
||||
// if result already received, the write could exit (early out)
|
||||
if m.resultReceived.IsSet() {
|
||||
return n, nil
|
||||
return len(p), nil
|
||||
}
|
||||
|
||||
// check if buffer contains relevant strings (assume write is called line wise by the hosted process
|
||||
|
Loading…
x
Reference in New Issue
Block a user