From: Karolin Seeger Date: Tue, 19 May 2009 11:42:16 +0000 (+0200) Subject: s3/docs: Fix shutdown script example. X-Git-Tag: tdb-1.1.5~483 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f741b90ee8f74077871a0b5d1df55c0dd34a313f;p=thirdparty%2Fsamba.git s3/docs: Fix shutdown script example. This fixes bug #5897. Thanks to TAKAHASHI Motonobu for reporting and providing the example! Karolin --- 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 @@ Shutdown script example: #!/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 & + Shutdown does not return so we need to launch it in background.