LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-03-2009, 11:55 PM   #1
netplay
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Rep: Reputation: 0
Change shebangs in rc.local file


Can I change the shebang in /etc/rc.local from #!/bin/sh to #!/bin/bash

Besides touch /var/lock/subsys/local, there's nothing in the rc.local file

I'm using the CentOS 5 distribution.
 
Old 02-04-2009, 12:34 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Let it be that way. Any reasons to do that. Bash will run the scripts that where shebangs is /bin/sh. They are compatible. There is no issue with your rc.local and do not change it if you do not have reason to do it. Surely enough you can add your own stuff there that you want to come up at boot.
 
Old 02-04-2009, 01:10 AM   #3
netplay
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Do you mean that if a script that needs the #!/bin/bash shebang will run fine with #!/bin/sh ?
 
Old 02-04-2009, 01:15 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Yes. It will. There should not be any issue with it. Let it be that way.
 
Old 02-04-2009, 01:55 AM   #5
netplay
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks Chaitanya .. Much Appreciated.
 
Old 02-04-2009, 04:45 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Always welcome.
 
  


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
How do I change name of server on local network? joeman3429 Ubuntu 5 10-21-2008 06:52 PM
change the original file when i change the symlink to that file sailu_mvn Linux - Desktop 2 04-19-2007 05:16 AM
How can i change my local host? Jose Santos Linux - Newbie 1 05-26-2005 05:15 AM
Local language change Carroarmato0 Mandriva 2 03-10-2005 12:28 PM
Local Host Name Change!! jarmstrong Linux - General 9 12-21-2002 03:43 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration