s3/docs: Fix shutdown script example.
authorKarolin Seeger <kseeger@samba.org>
Tue, 19 May 2009 11:42:16 +0000 (13:42 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 2 Jun 2009 10:41:56 +0000 (12:41 +0200)
This fixes bug #5897. Thanks to TAKAHASHI Motonobu
<monyo [at] samba.gr.jp> for reporting and providing the example!

Karolin
(cherry picked from commit f741b90ee8f74077871a0b5d1df55c0dd34a313f)
(cherry picked from commit 1653bbf50b02e4f4dc2f01c5dab32c1cc4894582)
(cherry picked from commit 3f45721216cc6144784c28b82a594f25ebdb1608)

docs-xml/smbdotconf/logon/shutdownscript.xml

index 7e8ec8fd3aaa2c5030d2e9d2f41b9ff5258f6897..076704aee7368bd6713f3d6af6863e036368b86a 100644 (file)
        <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>