all: initial support for setup linux router

Wiring code to configure router when running ctrld. Future commits will
add implementation for each supported platforms.
This commit is contained in:
Cuong Manh Le
2023-03-15 23:25:44 +07:00
committed by Cuong Manh Le
parent 0043fdf859
commit 4b6a976747
5 changed files with 193 additions and 13 deletions
+10 -6
View File
@@ -26,18 +26,22 @@ var (
cacheSize int
cfg ctrld.Config
verbose int
cdUID string
iface string
ifaceStartStop string
onRouter bool
rootLogger = zerolog.New(io.Discard)
mainLog = rootLogger
cdUID string
iface string
ifaceStartStop string
mainLog = zerolog.New(io.Discard)
)
func main() {
ctrld.InitConfig(v, "ctrld")
initCLI()
initRouterCLI()
if err := rootCmd.Execute(); err != nil {
stderrMsg(err.Error())
os.Exit(1)
}
}
func normalizeLogFilePath(logFilePath string) string {