mirror of
https://github.com/luscis/openlan.git
synced 2025-10-24 17:30:57 +08:00
clone from danieldin95
This commit is contained in:
23
cmd/point_darwin/main.go
Executable file
23
cmd/point_darwin/main.go
Executable file
@@ -0,0 +1,23 @@
|
||||
// +build darwin
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/luscis/openlan/pkg/access"
|
||||
"github.com/luscis/openlan/pkg/config"
|
||||
"github.com/luscis/openlan/pkg/libol"
|
||||
)
|
||||
|
||||
func main() {
|
||||
c := config.NewPoint()
|
||||
p := access.NewPoint(c)
|
||||
p.Initialize()
|
||||
libol.Go(p.Start)
|
||||
if c.Terminal == "on" {
|
||||
t := access.NewTerminal(p)
|
||||
t.Start()
|
||||
} else {
|
||||
libol.Wait()
|
||||
}
|
||||
p.Stop()
|
||||
}
|
||||
Reference in New Issue
Block a user