From f741b90ee8f74077871a0b5d1df55c0dd34a313f Mon Sep 17 00:00:00 2001 From: Karolin Seeger Date: Tue, 19 May 2009 13:42:16 +0200 Subject: s3/docs: Fix shutdown script example. This fixes bug #5897. Thanks to TAKAHASHI Motonobu for reporting and providing the example! Karolin --- docs-xml/smbdotconf/logon/shutdownscript.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'docs-xml/smbdotconf/logon') 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 @@ 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. -- cgit