diff options
author | Karolin Seeger <kseeger@samba.org> | 2009-05-19 13:42:16 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-06-02 12:41:56 +0200 |
commit | 38f5e34107bd8b29e174f0a0b8addc98aab658a7 (patch) | |
tree | 2cf96be8437ab2dcdd6ea5d7c45341eb42dcef59 /docs-xml | |
parent | c66488284db97477e21866dd704b6562c1b0dda0 (diff) | |
download | samba-38f5e34107bd8b29e174f0a0b8addc98aab658a7.tar.gz samba-38f5e34107bd8b29e174f0a0b8addc98aab658a7.tar.xz samba-38f5e34107bd8b29e174f0a0b8addc98aab658a7.zip |
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
(cherry picked from commit f741b90ee8f74077871a0b5d1df55c0dd34a313f)
(cherry picked from commit 1653bbf50b02e4f4dc2f01c5dab32c1cc4894582)
(cherry picked from commit 3f45721216cc6144784c28b82a594f25ebdb1608)
Diffstat (limited to 'docs-xml')
-rw-r--r-- | docs-xml/smbdotconf/logon/shutdownscript.xml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs-xml/smbdotconf/logon/shutdownscript.xml b/docs-xml/smbdotconf/logon/shutdownscript.xml index 7e8ec8fd3aa..076704aee73 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 "time/60" -let "time++" + +time=$2 +let time="${time} / 60" +let time="${time} + 1" /sbin/shutdown $3 $4 +$time $1 & + </programlisting> Shutdown does not return so we need to launch it in background. </para> |