EFW Support

Support => General Support => Topic started by: yaley on Wednesday 04 January 2012, 07:11:40 pm



Title: Where a rc.local file in Endian 2.5
Post by: yaley on Wednesday 04 January 2012, 07:11:40 pm
Hi

I try to test Endian 2.5 but i don't see rc.local??

Thanks



Title: Re: Where a rc.local file in Endian 2.5
Post by: endianupdate on Friday 27 January 2012, 09:04:31 pm
rc.local appears to be missing on Endian 2.5 as with Redhat/Fedora

find / -name 'rc.local' returns nothing

just SSH to your Endian as root and enter the command

nano /etc/rc.d/rc.local to create it

Hope this helps


Title: Re: Where a rc.local file in Endian 2.5
Post by: astaq on Sunday 12 February 2012, 01:37:25 pm
created rc.local at /etc/rc.d/ directory did not give any good result. Also in the /etc/rc.d./start/ directory. Any others suggestions?.


Title: Re: Where a rc.local file in Endian 2.5
Post by: mrubs on Sunday 12 February 2012, 11:57:34 pm
Yes, I find it. Great suggestion.


Title: Re: Where a rc.local file in Endian 2.5
Post by: kashifmax on Tuesday 03 April 2012, 07:44:28 pm
Yes, I find it. Great suggestion.

Where is the location dear... ???


Title: Re: Where a rc.local file in Endian 2.5
Post by: psitech on Tuesday 03 April 2012, 10:13:13 pm
Hi, i try to create a exec file /etc/rc.local /etc/rc.d/rc.local /etc/rc.d/init.d/rc.local /etc/rc.d/start/rc.local but anyone was execute when the endian start, someone know the solution for this ?


Title: Re: Where a rc.local file in Endian 2.5
Post by: andre.bolzan on Saturday 01 September 2012, 06:03:43 am
I did the work as follows:


Includes the following line in /etc/rc.d/rc.ipac:

Code:
### Start of Script called initialization, do not change - By Andre Bolzan on 31/08/2012 ###

. /Etc/rc.d/init.d/rc.local

### End of Script initialization###


I created the file rc.local in /etc/rc.d/init.d/

Code:

#!/Bin/sh
### This script is not the standard Endian 2.5.1, was created to ###

### Startup Scrips - by Bolzan Andre On 31/08/2012 ###
### Meet the demand: creating routes between units ###
### So automatically during system startup. ###
### Running this script and gave file: ###
### /Etc/rc.d/rc.ipac ###
### In this file, you can include any command. ###


route add-net 192.168.1.0/24 gw 192.168.200.1
route add-net 192.168.0.0/24 gw 192.168.200.1

### end script ###


Translated from Portuguese into English by google translater.