* Rewrote and optimized ffluci.model.uci
[project/luci.git] / core / src / ffluci / model / uci.lua
index 511c974..ca5b232 100644 (file)
@@ -25,6 +25,9 @@ limitations under the License.
 ]]--
 module("ffluci.model.uci", package.seeall)
 
 ]]--
 module("ffluci.model.uci", package.seeall)
 
+-- Default savedir
+savedir = "/tmp/.uci"
+
 -- Test whether to load libuci-Wrapper or /sbin/uci-Wrapper
 if pcall(require, "uci") then
        Session = require("ffluci.model.uci.libuci").Session
 -- Test whether to load libuci-Wrapper or /sbin/uci-Wrapper
 if pcall(require, "uci") then
        Session = require("ffluci.model.uci.libuci").Session
@@ -53,7 +56,6 @@ function changes(...)
        return default:changes(...)
 end
 
        return default:changes(...)
 end
 
-
 -- Wrapper for "uci commit"
 function commit(...)
        return default:commit(...)
 -- Wrapper for "uci commit"
 function commit(...)
        return default:commit(...)