Please allways tell which version of openSUSE you are using.
Are you suing a desktop environment? When yes, are you using NetworkManger? When yes, then ptobably your network is not up until a user loged in and connected to a network.
Since i have other scripts I need to write, I guess I’ll write it in a startup script. Side question, since OpenSuse switched to systemd, is it recommended I create a service out of this or just add mu stuff to /etc/init.d/boot.local ?
If you don’t mind creating a service, then that is probably the correct way from a systemd perspective. I wouldn’t recommend using boot.local, as that is too early in the boot sequence.
No, he is referring to /etc/fstab, although either place will work assuming the network is actually up. The cifstab location is just regarded as being more secure if using authentication credentials (which the OP isn’t)
# This file allows you to mount SMB/ CIFS shares during system boot while
# hiding passwords to other people than root. Use /etc/fstab for public
# available services. You have to specify at least a service name and a mount
# point. Current default vfstype is cifs.
I just added it to my custom login script I have which does other things. The share gets mounted now, but i have other issues I’m starting another thread for.