summaryrefslogtreecommitdiffhomepage
path: root/libs/sys/luasrc/sys.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-11-25 08:14:10 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-11-25 08:14:10 +0000
commit3b5123937e901ee70cf5b602d7efcf83d23dc0ee (patch)
tree92d0f81f846db62e9ddd5a40d4aea1e7f9e9fcaa /libs/sys/luasrc/sys.lua
parent77ae07c88f9d27d60c7d98a81d83386d60d36645 (diff)
libs/sys: remove luci.sys.flash()
Diffstat (limited to 'libs/sys/luasrc/sys.lua')
-rw-r--r--libs/sys/luasrc/sys.lua14
1 files changed, 0 insertions, 14 deletions
diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua
index d4242a333..c0ee4a1d1 100644
--- a/libs/sys/luasrc/sys.lua
+++ b/libs/sys/luasrc/sys.lua
@@ -60,20 +60,6 @@ end
-- @return String containg the return the output of the command
exec = luci.util.exec
---- Invoke the luci-flash executable to write an image to the flash memory.
--- @param image Local path or URL to image file
--- @param kpattern Pattern of files to keep over flash process
--- @return Return value of os.execute()
-function flash(image, kpattern)
- local cmd = "luci-flash "
- if kpattern then
- cmd = cmd .. "-k '" .. kpattern:gsub("'", "") .. "' "
- end
- cmd = cmd .. "'" .. image:gsub("'", "") .. "' >/dev/null 2>&1"
-
- return os.execute(cmd)
-end
-
--- Retrieve information about currently mounted file systems.
-- @return Table containing mount information
function mounts()