summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
Diffstat (limited to 'testprogs')
-rw-r--r--testprogs/ejs/loadparm.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/testprogs/ejs/loadparm.js b/testprogs/ejs/loadparm.js
index 6c2a80bb73..f56ca9f7fc 100644
--- a/testprogs/ejs/loadparm.js
+++ b/testprogs/ejs/loadparm.js
@@ -2,9 +2,11 @@
demonstrate access to loadparm functions from ejs
*/
+loadparm_init(local);
+
function showParameter(name) {
print(name + ": ");
- printVars(lpGet(name));
+ printVars(get(name));
}
for (v in ARGV) {
@@ -12,7 +14,7 @@ for (v in ARGV) {
}
print("defined services: ");
-printVars(lpServices());
+printVars(services());
showParameter("server services");
showParameter("netbios name");
@@ -21,4 +23,3 @@ showParameter("workgroup");
showParameter("log level");
showParameter("server signing");
showParameter("interfaces");
-