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)} }