implement update cmd

This commit is contained in:
Callan Bryant 2020-03-04 22:06:15 +00:00
parent 1572a78d6c
commit d9f197c06f
No known key found for this signature in database
GPG Key ID: C31FA9DF3ACBFFAA
2 changed files with 8 additions and 0 deletions

View File

@ -26,6 +26,7 @@ func main() {
dsnet.Up()
case "update":
dsnet.Update()
case "report":

7
update.go Normal file
View File

@ -0,0 +1,7 @@
package dsnet
func Update() {
// TODO check device settings first
conf := MustLoadDsnetConfig()
ConfigureDevice(conf)
}