well, have a look at a /etc/init.d script!
Code:
#! /bin/sh
# Copyright (c) 1999-2003 SuSE Linux AG, Nuernberg, Germany.
# All rights reserved.
#
# Author: Thomas Fehr, 1999-2001
# Lars Mueller <lmuelle@suse.de>, 2002-2004
# Bjoern Jacke <bjacke@SerNet.de> 2004
#
# /etc/init.d/smbfs
# and its symbolic link
# /usr/sbin/rcsmbfs
#
### BEGIN INIT INFO
# Provides: smbfs
# Required-Start: $network $syslog
# X-UnitedLinux-Should-Start: nmb smb
# Required-Stop:
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Import remote SMB/ CIFS (MS Windows) file systems
### END INIT INFO
so put your code below this block. modify "# Provides: smbfs" with e.g. "Provides: some_suitable_name" and set "# Required-Start: $smbfs"
then you can have your script added to the runlevels with yast automatically in the right order, that is after samba stuff has been mounted.