Fixing add command
This commit is contained in:
parent
b26fa7f280
commit
b9559bb9f3
5
uci.go
5
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)}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user