From b9559bb9f30ab859c737d67f67a7ba901c6c92a3 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Fri, 9 Nov 2018 14:38:58 +0100 Subject: [PATCH] Fixing add command --- uci.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/uci.go b/uci.go index 1f51a52..0934946 100644 --- a/uci.go +++ b/uci.go @@ -43,8 +43,9 @@ func (u *UCI) uciRun(param ...string) *Action { // Add add an entry to UCI configuration, specify the Module and the value func (u *UCI) Add(module string, name string) *Action { - cmd := "uci add" - commandRes := u.exec.Run(cmd, module, name) + cmd := "/sbin/uci" + opt := "add" + commandRes := u.exec.Run(cmd, opt, module, name) return &Action{commandRes, fmt.Sprintf("%s %s %s", cmd, module, name)} }