Manny Styles wrote:
> 
> ----- Original Message -----
> From: Joseph S. Gardner <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 25, 1999 7:19 AM
> Subject: Re: [newbie] ppa
> 
> > Steve Philp wrote:
> <snip>
> > > Sure, create a file /etc/rc.d/rc.modules that contains:
> > >
> > >         #! /bin/sh
> > >
> > >         modprobe ppa
> > >
> > > Then set it to be executable:
> > >
> > >         chmod +x /etc/rc.d/rc.modules
> > >
> > > And it'll be run auto-magically whenever you boot.
> > >
> > > --
> > > Steve Philp
> > > Network Administrator
> > > Advance Packaging Corporation
> > > [EMAIL PROTECTED]
> >
> > Steve,
> >
> > What is the line    #! /bin/sh    for?  I thought the "#" char. signified
> a
> > comment to follow?
> >
> > Joe
> >
> >
> I believe that it switches to the sh shell from bash shell, which is usually
> the default.  As to why you need sh for a script, I was actually planning to
> write an e-mail asking that exact question.

Because you need to tell the system what to use to execute the commands
contained in the file.  Check /etc/rc.d/rc.local and
/etc/rc.d/rc.sysinit and you'll find the same at the top of them. 
Probably the same in the scripts in /etc/rc.d/init.d/.


-- 
Steve Philp
Network Administrator
Advance Packaging Corporation
[EMAIL PROTECTED]

Reply via email to