Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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:

#!/bin/sh
/sbin/ifconfig bge0 ether

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

Then

chmod 755 S99ether

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.