mod_version: Make the command used to get OS version configurable

Sun, 01 Aug 2010 15:56:52 +0200

author
Kim Alvefur <zash@zash.se>
date
Sun, 01 Aug 2010 15:56:52 +0200
changeset 3420
9be46a3466ef
parent 3419
79e08dc3fd37
child 3421
d3852a4d37e2

mod_version: Make the command used to get OS version configurable

plugins/mod_version.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_version.lua	Sat Jul 31 11:30:16 2010 +0100
+++ b/plugins/mod_version.lua	Sun Aug 01 15:56:52 2010 +0200
@@ -16,7 +16,7 @@
 	if os.getenv("WINDIR") then
 		version = "Windows";
 	else
-		local uname = io.popen("uname");
+		local uname = io.popen(module:get_option("os_version_command") or "uname");
 		if uname then
 			version = uname:read("*a");
 		else

mercurial