Hi rohde!
I just happen to have a SuSE 9.1 Personal here (just trying it out, didn't say I like it, which I don't). I'll try to walk you through it.
This assumes that you are logged in as a normal user.
o Open a text editor ( Start > Utilities > Editor ) and enter the commands you want to be executed. The first line of the file should look like this:
Save this file under some name you fancy (like myscript). Put it in your users home directory (for me, it's /home/martin )
o Open a terminal for root ( Start > System > Terminal > Terminal - Super User ) and enter the root password.
o Now, all startup scripts are placed in a directory called /etc/rc.d. Go there:
# cd /etc/rc.d
o Copy the script you just wrote here:
# cp /home/martin/myscript .
(Note the dot at the end. It's the destination of cp and means "current directory")
o We need to make the script executable:
# chmod 755 myscript
o Now, to make the script run at startup, you must make a symbolic link to it in rc5.d. To make a long story short, this is the directory that contains the scripts that are run in a normal boot into a graphical interface.
# cd rc5.d
o You may want to look at what's in this directory already. Not necessary, just out of curiosity:
# ls -alF
You see a lot of symbolic links to scripts in the parent directory (.. means parent)
o Make a symbolic link to your script:
# ln -s ../myscript S20myscript
The S is for a start script (as opposed to K, which are kill scripts) and the 20 is a number to order the scripts. The scripts with low numbers are run before scripts with high numbers.
Now, reboot and see if it works!
Good luck! Feel free to ask more if this doesn't work or is unclear to you.
Martin