git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43bab13
)
s3/docs: Fix shutdown script example.
author
Karolin Seeger
<kseeger@samba.org>
Tue, 19 May 2009 11:42:16 +0000
(13:42 +0200)
committer
Karolin Seeger
<kseeger@samba.org>
Tue, 19 May 2009 11:48:51 +0000
(13:48 +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
)
docs-xml/smbdotconf/logon/shutdownscript.xml
patch
|
blob
|
history
diff --git
a/docs-xml/smbdotconf/logon/shutdownscript.xml
b/docs-xml/smbdotconf/logon/shutdownscript.xml
index 7e8ec8fd3aaa2c5030d2e9d2f41b9ff5258f6897..076704aee7368bd6713f3d6af6863e036368b86a 100644
(file)
--- 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>