diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-11-16 22:45:10 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-11-16 22:45:10 +0000 |
commit | cbed72fb47c8c0eda6322574c678389b795cd23c (patch) | |
tree | d6c2798764c258017c14e5ef375f62bba49a7e45 /libs/sys/luasrc | |
parent | 8b8d9030357e739eb1ae1a6b52a723c8fee8c4a6 (diff) |
* luci/themes: fix log pages
* luci/modules/admin-full: add dmesg page
* luci/i18n: add "dmesg" translations
* luci/libs/util: add cmatch(), register string functions in string class
* luci/libs/sys: add dmesg()
Diffstat (limited to 'libs/sys/luasrc')
-rw-r--r-- | libs/sys/luasrc/sys.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua index 413aa4c11..52ed0c36d 100644 --- a/libs/sys/luasrc/sys.lua +++ b/libs/sys/luasrc/sys.lua @@ -204,6 +204,12 @@ function syslog() return luci.util.exec("logread") end +--- Retrieves the output of the "dmesg" command. +-- @return String containing the current log buffer +function dmesg() + return luci.util.exec("dmesg") +end + --- Generates a random id with specified length. -- @param bytes Number of bytes for the unique id -- @return String containing hex encoded id |