14 lines
344 B
Go
14 lines
344 B
Go
package s6netdev
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func (t *S6SvcTree) CreateIfaceService(iface string) *S6Svc {
|
|
return t.S6New(S6SvcName(fmt.Sprintf("interface.%s.create", iface)), &S6SvcTypes.Oneshot)
|
|
}
|
|
|
|
func (t *S6SvcTree) LinkIfaceService(iface string) *S6Svc {
|
|
return t.S6New(S6SvcName(fmt.Sprintf("interface.%s.link", iface)), &S6SvcTypes.Oneshot)
|
|
}
|