# HG changeset patch # User Kim Alvefur # Date 1280671012 -7200 # Node ID 9be46a3466efd4ec161a69bf3885fab96b5bd9b2 # Parent 79e08dc3fd3745669582603ca30dd72fcf271eb9 mod_version: Make the command used to get OS version configurable diff -r 79e08dc3fd37 -r 9be46a3466ef plugins/mod_version.lua --- 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