Login or Boot up Command
Posted on 2003-11-29
I am using SuSe Linux 9.0.
For whatever reason I have to set my default gateway by executing, as root, the command
ip route add default via 192.168.1.1 dev wlan0
Question is, where is the best place to put this command so that it gets executed on boot, or, perhaps better, on logon for any user. Remember, especially on logon for any user, the command must be executed as root.
If more than the command itself has to be added, please include the extra stuff (like switching to root and back).