diff --git a/cmd/dsnet.go b/cmd/dsnet.go index 4dad8f3..8d2d99d 100644 --- a/cmd/dsnet.go +++ b/cmd/dsnet.go @@ -26,6 +26,7 @@ func main() { dsnet.Up() case "update": + dsnet.Update() case "report": diff --git a/update.go b/update.go new file mode 100644 index 0000000..8befbbe --- /dev/null +++ b/update.go @@ -0,0 +1,7 @@ +package dsnet + +func Update() { + // TODO check device settings first + conf := MustLoadDsnetConfig() + ConfigureDevice(conf) +}