r8589: - support --version option to smbstatus
authorAndrew Tridgell <tridge@samba.org>
Tue, 19 Jul 2005 09:29:30 +0000 (09:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:29:42 +0000 (13:29 -0500)
- print samba version at startup
(This used to be commit eb3e4bbe7f4a8f48c9246275ad6ef21ed0b4d357)

source4/scripting/bin/smbstatus

index df8864f7e8e29b6538eea248c29eae13eb0363f5..7fefae69630ef240437ddf51888a065a875a3fd1 100755 (executable)
@@ -14,6 +14,7 @@ var options = new Object();
 ok = GetOptions(ARGV, options,
                "POPT_AUTOHELP",
                "POPT_COMMON_SAMBA",
+               "POPT_COMMON_VERSION",
                "nbt");
 if (ok == false) {
        println("Failed to parse options: " + options.ERROR);
@@ -81,6 +82,7 @@ function show_nbt()
        println("");
 }
 
+printf("%s\n\n", lpGet("server string"));
 
 if (options['nbt'] != undefined) {
        show_nbt();