all: support older version of Openwrt

This commit is contained in:
Cuong Manh Le
2023-06-07 23:48:41 +07:00
committed by Cuong Manh Le
parent 929de49c7b
commit 53f8d006f0
2 changed files with 12 additions and 1 deletions
+2 -1
View File
@@ -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