Bug 5897 - Example for "shutdown script" in smb.conf(5) is invalid
Summary: Example for "shutdown script" in smb.conf(5) is invalid
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: Docs (show other bugs)
Version: 3.2.4
Hardware: Other All
: P3 minor
Target Milestone: ---
Assignee: Samba Bugzilla Account
QA Contact: Samba Documentation QA Contact~
URL:
Keywords:
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!