is there a way to get /etc/rc.d/rc.inet? to use a different rc.inet.conf
so that's my question
slackware 14.2 |
/etc/rc/d/rc.inet1 is just a shell script, so you could always change the configuration file that it sources. That occurs on line 12, the first non-comment line of the script. Don't blame me if you mess up something by doing this, though. :)
|
OK so I copy rc.inet? to some place
rename it to start.inet1 same with /etc/rc.d/rc.inet2 change it change name and path the new config file and the path and name of /etc/rc.d/rc.inet2 to use the new settings and to connect eth0 do a " /etc/rc.d/rc.inet1 stop;./start.inet1 start" to get back to normal "./start.inet1 stop;/etc/rc.d/rc.inet1 start " I don't need the changed network configuration full time just temporarily |
I don't know if it depends on the version of Slackware or something, but I don't have a plain old /etc/rc.d/rc.inet. I have /etc/rc.d/rc.inet1 and /etc/rc.d/rc.inet2, as well as some /etc/rc.d/rc.inet1.conf* files and /etc/rc.d/rc.inetd. So it looks like you can just change line 12 of /etc/rc.d/rc.inet1 to source whatever configuration file you want, and then do:
Code:
/etc/rc.d/rc.inet1 restart |
I want to go back and fourth between configurations as needed
I have a sane system that dose what I want it to I don't want to mess that up I need to write a script that will connect to a flashed wifi router then run firefox on the WEB GUI of a repeater-bridge the HUGE PROBLEM is the ip-address,netmask and the gateway address all have to be set because there is NO! DHCP server running on the disconnected reapeater-bridg all IP addresses come from the host AP it's wirelessly connected to I can connect to NOW by doing a ifconfig wlan0 down configuring the wirded-connection using static IP addresses and connecting to it with wicd-curses BUT I'm going to hand this thing over to a computer illiterate there is no way in hell he could ever configure a connection and open a dot-decmal web address with out running a script |
All times are GMT -5. The time now is 05:05 PM. |