LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How do I set up multiple boot scripts in linux? (https://www.linuxquestions.org/questions/slackware-14/how-do-i-set-up-multiple-boot-scripts-in-linux-421579/)

Jbernoski 03-04-2006 11:14 AM

How do I set up multiple boot scripts in linux?
 
EDIT: Haha I wrote "in linux" in the thread, but what else could I be talking about.

I know I can put dirty words in rc.local to see them when I boot up. Though I want to have two dirty words that I can choose from. Do I need to insert some code into the rc.local and prompt myself for user input, or am I required to create some sort of second file?

Is it going to look like something like this?
Code:

omgerror:
PRINT PLZ TYPE
WAITFORHIMTOTYPE
If (HE TYPES 1)
echo poop
If (HE TYPES 2)
echo vagina
ELSE
goto omgerror

I used the click here to find similar threads, and I could search multiple posts on dual boot systems, but instead I posted. Thanks in advance.

cwwilson721 03-04-2006 11:54 AM

You CAN use rc.local, but personally, I would write a seperate script, and call it from rc.local (easier to change/edit things).

For example, I made a script for running NAT and a DHCP server in a rc.nat script, then called it from rc.local. When I didn't need routing/DHCP server anymore, I just commented out the line in rc.local

Jbernoski 03-04-2006 12:00 PM

Quote:

Originally Posted by cwwilson721
You CAN use rc.local, but personally, I would write a seperate script, and call it from rc.local (easier to change/edit things).

For example, I made a script for running NAT and a DHCP server in a rc.nat script, then called it from rc.local. When I didn't need routing/DHCP server anymore, I just commented out the line in rc.local

Hmm, good idea. However, I'm looking for a specific choice between my hidden SSID wifi network at home and my schools PEAP network. While comments *would* work. I'd like some sort of menu. As it is I've either got to do things with iwconfig or do things with wpa_supplicant. I could just throw them all in the rc.local, but that seems like the kind of thing that would cause trouble.

cwwilson721 03-04-2006 12:05 PM

Look in rc.wlan and rc.wireless. You can setup different networks using the config files for them. For example: I have two wireless networks in my house, one for the lan, one for vpn for work. I can choose between them using the config scripts and wireless tools in KDE.

Jbernoski 03-11-2006 08:27 PM

I'm kind of baffled. It seems like those only allow normal configuration and don't let me specify a wpa_supplicant config file. If there is anyway I can just run what lines I need to run to connect to my home network or run what lines I need to run to connect to my school network. I'd really rather do that than deal with the config files at all.


All times are GMT -5. The time now is 02:53 PM.