The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
A comparison of the multi-user facilities in Unix and Microsoft Windows. nadman123 UNIX for Dummies Questions & Answers 2 05-09-2008 03:31 AM
S-233: Cisco Secure Access Control Server for Windows User-Changeable Password Vulner iBot Security Advisories (RSS) 0 03-27-2008 10:10 AM
How to find windows user without any password RPG Windows & DOS: Issues & Discussions 0 09-06-2007 01:35 AM
got a dumb question where do i get AIX 5.3 from wmccull AIX 2 09-04-2007 12:01 PM
Windows user help...... cia UNIX for Dummies Questions & Answers 1 10-11-2001 11:57 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-21-2005
wbeard6142 wbeard6142 is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 3
Red face Help Me!!!! Networking MAC OS-X

Networking on the MAC is so hard...I hope some can help...

I need to know how to write a UNIX script that will autostart when OS X boots, and that executes this line:

route add -net 10.10.10.0 10.10.11.10 255.255.255.0


PLEASE HELP ME

WILL

Last edited by wbeard6142; 06-21-2005 at 09:00 PM..
  #2 (permalink)  
Old 06-21-2005
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Welcome to the forums, but please do not post derogatory comments about OS's. Personal opinion like this will just end up causing a flame war.

The rules are clear on this.

Thanks,
ZB
  #3 (permalink)  
Old 06-21-2005
ShellUser ShellUser is offline
Registered User
  
 

Join Date: Jun 2005
Location: albama
Posts: 3
hi

Go to google.com and type the following in the search box, and you can go from there.

MAC OS-X unix script boots

You can always search for unix scripts for MAC OS-X systems on the web

Best of luck to you.

Luis
  #4 (permalink)  
Old 06-21-2005
ShellUser ShellUser is offline
Registered User
  
 

Join Date: Jun 2005
Location: albama
Posts: 3
I also found this page on the net:

http://www.kernelthread.com/mac/osx/arch_startup.html

you will find it very useful.


GO TO THE WEB PAGE AND LOOK FOR THE PART THAT SAYS:

From here on, the startup becomes user-level:

mach_init starts /sbin/init, the traditional BSD init process. init determines the runlevel, and runs /etc/rc.boot, which sets up the machine enough to run single-user.

During its execution, rc.boot and the other rc scripts source /etc/rc.common, a shell script containing utility functions, such as CheckForNetwork() (checks if the network is up), GetPID(), purgedir() (deletes directory contents only, not the structure), etc.

rc.boot figures out the type of boot (Multi-User, Safe, CD-ROM, Network etc.).

In case of a network boot (the sysctl variable kern.netboot will be set to 1 in which case), it runs /etc/rc.netboot with a start argument.

/etc/rc.netboot handles various aspects of network booting. For example, it performs network and (if any) local mounts.

It also calls /usr/bin/nbst to associate a shadow file with the disk image being used as the root device. The idea is to redirect writes to the shadow file, which hopefully is on local storage.


GOOD LUCK AGIAN
  #5 (permalink)  
Old 06-21-2005
wbeard6142 wbeard6142 is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 3
Thanks for the help...

I went to the site and I added the route add into the rc.common file.

IT WORKS!!!! THANK YOU!!!!

Last edited by wbeard6142; 06-23-2005 at 02:42 PM..
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:22 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0