30 lines
423 B
Go
30 lines
423 B
Go
package profile
|
|
|
|
import (
|
|
"github.com/Safing/portbase/modules"
|
|
|
|
// module dependencies
|
|
_ "github.com/Safing/portmaster/core"
|
|
)
|
|
|
|
var (
|
|
shutdownSignal = make(chan struct{})
|
|
)
|
|
|
|
func init() {
|
|
modules.Register("profile", nil, start, stop, "core")
|
|
}
|
|
|
|
func start() error {
|
|
err := initSpecialProfiles()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return initUpdateListener()
|
|
}
|
|
|
|
func stop() error {
|
|
close(shutdownSignal)
|
|
return nil
|
|
}
|