all: implement router setup for merlin

This commit is contained in:
Cuong Manh Le
2023-05-13 11:58:56 +07:00
committed by Cuong Manh Le
parent 2c7d95bba2
commit a5443d5ca4
13 changed files with 565 additions and 20 deletions
+19 -8
View File
@@ -7,16 +7,27 @@ import (
)
func init() {
system := &linuxSystemService{
name: "ddwrt",
detect: func() bool { return Name() == DDWrt },
interactive: func() bool {
is, _ := isInteractive()
return is
systems := []service.System{
&linuxSystemService{
name: "ddwrt",
detect: func() bool { return Name() == DDWrt },
interactive: func() bool {
is, _ := isInteractive()
return is
},
new: newddwrtService,
},
&linuxSystemService{
name: "merlin",
detect: func() bool { return Name() == Merlin },
interactive: func() bool {
is, _ := isInteractive()
return is
},
new: newMerlinService,
},
new: newddwrtService,
}
systems := append([]service.System{system}, service.AvailableSystems()...)
systems = append(systems, service.AvailableSystems()...)
service.ChooseSystem(systems...)
}