LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-04-2006, 11:14 AM   #1
Jbernoski
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 46

Rep: Reputation: 15
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.
 
Old 03-04-2006, 11:54 AM   #2
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
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
 
Old 03-04-2006, 12:00 PM   #3
Jbernoski
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 46

Original Poster
Rep: Reputation: 15
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.
 
Old 03-04-2006, 12:05 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
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.
 
Old 03-11-2006, 08:27 PM   #5
Jbernoski
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 46

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't my scripts set environment variables? Matthew3 Linux - Software 5 08-28-2004 05:26 PM
Helpwriting a script that tar's multiple scripts in all folders but not itself VisionZ Linux - Newbie 2 03-22-2004 03:49 AM
How do i set up a multiple dual boot?? dsantamassino Linux - Newbie 13 06-15-2003 07:09 AM
GRUB using /boot partition for multiple Linux/Windows boot? cpv204 Linux - Newbie 7 04-01-2003 03:54 PM
Command to list line length of multiple scripts Tekime Linux - General 2 09-06-2002 01:04 AM


All times are GMT -5. The time now is 01:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration