summaryrefslogtreecommitdiff
path: root/docs-xml
diff options
context:
space:
mode:
authorKarolin Seeger <kseeger@samba.org>2009-05-19 13:42:16 +0200
committerKarolin Seeger <kseeger@samba.org>2009-05-19 13:42:16 +0200
commitf741b90ee8f74077871a0b5d1df55c0dd34a313f (patch)
tree1e050361d7d86e5d9c4806ee05c12a677952f973 /docs-xml
parent1718e803dc9269f8ba0db4260cc3b8a000da248a (diff)
downloadsamba-f741b90ee8f74077871a0b5d1df55c0dd34a313f.tar.gz
s3/docs: Fix shutdown script example.
This fixes bug #5897. Thanks to TAKAHASHI Motonobu <monyo [at] samba.gr.jp> for reporting and providing the example! Karolin
Diffstat (limited to 'docs-xml')
-rw-r--r--docs-xml/smbdotconf/logon/shutdownscript.xml9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs-xml/smbdotconf/logon/shutdownscript.xml b/docs-xml/smbdotconf/logon/shutdownscript.xml
index 7e8ec8fd3a..076704aee7 100644
--- a/docs-xml/smbdotconf/logon/shutdownscript.xml
+++ b/docs-xml/smbdotconf/logon/shutdownscript.xml
@@ -42,12 +42,13 @@
<para>Shutdown script example:
<programlisting format="linespecific">
#!/bin/bash
-
-$time=0
-let &quot;time/60&quot;
-let &quot;time++&quot;
+
+time=$2
+let time=&quot;${time} / 60&quot;
+let time=&quot;${time} + 1&quot;
/sbin/shutdown $3 $4 +$time $1 &amp;
+
</programlisting>
Shutdown does not return so we need to launch it in background.
</para>