Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This should be an easy question, but as a solaris novice, I'm stuck. I have to launch a change MAC address command at boot (i.e. ifconfig bge0 ether). If I do this at terminal, everything goes smooth. where should I put this little command to make it run at boot? I already know about init.d directory and symlinks at rcX.d directories, but I don't know what to put in it, as I never made a script.

share|improve this question

Check if you can see an /etc/init.d/rc.local you can put it there, if not then go to:

cd /etc/init.d/rc3.d

Then create a simple file named : S99ether for example

In it:

/sbin/ifconfig bge0 ether

Check to make sure that ifconfig is under /sbin. To check: type ifconfig


chmod 755 S99ether

Try to run S99ether by hand if should execute the command.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .