Bug 5897 - Example for "shutdown script" in smb.conf(5) is invalid
Example for "shutdown script" in smb.conf(5) is invalid
Status: RESOLVED FIXED
Product: Samba 3.2
Classification: Unclassified
Component: Docs
3.2.4
Other All
: P3 minor
: ---
Assigned To: Samba Bugzilla Account
Samba Documentation QA Contact~
:
Depends on: 4280
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-14 05:09 UTC by TAKAHASHI Motonobu
Modified: 2009-05-19 06:50 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description TAKAHASHI Motonobu 2008-11-14 05:09:24 UTC
In "shutdown script" section in smb.conf(5):
 An example script is offerred:

-----
               #!/bin/bash

               $time=0
               let "time/60"
               let "time++"

               /sbin/shutdown $3 $4 +$time $1 &
-----

This should be :

-----
#!/bin/bash

time=$2
let time="${time} / 60"
let time="${time} + 1"

/sbin/shutdown $3 $4 +$time $1 &
-----

I tested this script on Debian/GNU Linux 4.0 (etch)
Comment 1 Karolin Seeger 2009-05-19 06:50:03 UTC
Fix will be included in Samba 3.2.12 and 3.3.5.

Thanks for reporting!