mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-05-15 00:50:25 +02:00
all: support older version of Openwrt
This commit is contained in:
committed by
Cuong Manh Le
parent
929de49c7b
commit
53f8d006f0
@@ -13,7 +13,8 @@ import (
|
||||
|
||||
func newService(s service.Service) service.Service {
|
||||
// TODO: unify for other SysV system.
|
||||
if router.IsGLiNet() {
|
||||
switch {
|
||||
case router.IsGLiNet(), router.IsOldOpenwrt():
|
||||
return &sysV{s}
|
||||
}
|
||||
return s
|
||||
|
||||
Reference in New Issue
Block a user