From 86d628a292a22973597e0c06d4a36e20c58ae31c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 20 Jul 2005 07:20:03 +0000 Subject: r8639: moved loadparm calls into an ejs object (This used to be commit 2dc493eea6f9d87c40ad0dc755f528ce0b33ca47) --- source4/scripting/bin/smbstatus | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/scripting/bin/smbstatus') diff --git a/source4/scripting/bin/smbstatus b/source4/scripting/bin/smbstatus index 7fefae6963..38f2ab06a9 100755 --- a/source4/scripting/bin/smbstatus +++ b/source4/scripting/bin/smbstatus @@ -82,7 +82,9 @@ function show_nbt() println(""); } -printf("%s\n\n", lpGet("server string")); +var lp = loadparm_init(); + +printf("%s\n\n", lp.get("server string")); if (options['nbt'] != undefined) { show_nbt(); -- cgit