mirror of
https://github.com/luscis/openlan.git
synced 2025-09-26 20:41:29 +08:00
24 lines
367 B
Go
Executable File
24 lines
367 B
Go
Executable File
// +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()
|
|
}
|