Man, sometimes the most obvious is what I overlook...
Looking at the other files helped set me on the right track.
I will detail my solution so that others running Suse can benefit.
Suse says the start up scripts are in etc/rc.d, but from what I can tell, etc/rc.d and etc/init.d are exact mirrors of eachother. When I change a file in one location it is changed in the other.
I added two lines to the code:
Code:
#! /bin/sh
#
# Smb Mount
#
# Source SuSE config
. /etc/rc.status
mount -t smbfs -o username=Administrator,password=barney //bilbo/shared /home/elbow/share/bilbo
echo "Bilbo Mounted"
rc_exit
I added: . /etc/rc.status at the beginning and
rc_exit at the end.
I am not sure what these lines do yet, I will look into that later. But all the other boot scripts in etc/rc.d had these lines.
Then I put the script in etc/rc.d, I think you could put it anywhere though, like in /usr/local/bin as stunNed stated.
Then create a link to rc5.d like this:
Code:
#ln -s /etc/rc.d/boot.smbmount /etc/rc.d/rc5.d/S99boot.smbmount
When I restarted it was working fine.
Hope that helps someone,
Thanks for the help StuNNED