|
Where are you calling the script from?
Make the file /etc/rc.d/startsmb with the same contents as you have.
Then call it from within /etc/rc.d/rc.local
What I'd do is make the file startsmb in /etc/rc.d/startsmb without the #!/sbin/sh [it isnt needed]
edit /etc/rc.d/rc.local
and add bash /etc/rc.d/startsmb to the end.
PS: why not use your favourite runlevel editor to start samba?
|