diff options
Diffstat (limited to 'docs-xml/smbdotconf/logon')
-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 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 "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> |