From: Karolin Seeger Date: Tue, 19 May 2009 11:42:16 +0000 (+0200) Subject: s3/docs: Fix shutdown script example. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f45721216cc6144784c28b82a594f25ebdb1608;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 (cherry picked from commit f741b90ee8f74077871a0b5d1df55c0dd34a313f) (cherry picked from commit 1653bbf50b02e4f4dc2f01c5dab32c1cc4894582) --- 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.