Welcome, Guest. Please login or register.
Did you miss your activation email?
Sunday 15 December 2024, 03:56:38 pm

Login with username, password and session length

Download the latest community FREE version  HERE
14261 Posts in 4377 Topics by 6517 Members
Latest Member: Sandro
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  Execute script at start up
0 Members and 0 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Execute script at start up  (Read 24692 times)
Blackice
Full Member
***
Offline Offline

Posts: 12


« on: Tuesday 20 March 2012, 11:12:42 am »

Hi,

I need something equivalent to rc.local in endian, a path or file that i can put a script in it to do something during the start up

Any suggestions ?.

Thanks
Logged
David.Dejaeghere
Full Member
***
Offline Offline

Gender: Male
Posts: 17


« Reply #1 on: Saturday 24 March 2012, 01:08:41 am »

You can put custom startup scripts in /etc/rc.d/start/
Just have a look at other scripts there and create another accordingly. The number in the filename determines the order of the scripts to boot.
If you want something running after the other scripts you can create a script called 99myscript.
Also dont forget to make it executable with chmod +x 99myscript
Logged
Blackice
Full Member
***
Offline Offline

Posts: 12


« Reply #2 on: Saturday 24 March 2012, 07:13:11 pm »

Thanks for you help; what you have stated seems to be logic but i have tried it with no hope didn't work at all and I followed what you mentioned,

I'm trying to put some iptables rules as start up if there is any other way to make this, let me know please. Thanks for you help anyway Smiley .
Logged
David.Dejaeghere
Full Member
***
Offline Offline

Gender: Male
Posts: 17


« Reply #3 on: Monday 26 March 2012, 10:30:59 pm »

Send me your script and i ll walk you through it
Logged
rchav
Jr. Member
*
Offline Offline

Posts: 1


« Reply #4 on: Wednesday 28 March 2012, 01:43:44 am »

Hi. I also tried and the script didn't run on reboot.

I have a custom script for traffic shaping that I can run fine manually form the ssh console, but I want to be able to set it to run on boot.

Thanks.
Logged
Blackice
Full Member
***
Offline Offline

Posts: 12


« Reply #5 on: Friday 30 March 2012, 08:42:43 pm »

@David.Dejaeghere

Thanks alot for offering help that way :

my script is very very simple. It consists of iptables lines , regular commands I mean. Let say something like below

iptables -t nat - I PORSTROUTING -s 10.10.10.10 -j MASQUERADE
iptables -I INPUT 192.168.1.10 -j ACCEPT 


Waiting for you .
Thanks
Logged
alex_t
Full Member
***
Offline Offline

Posts: 15


« Reply #6 on: Tuesday 16 October 2012, 12:09:23 am »

for me doesn,t work neither,
besides, at version 2.5.1 there is NO files in /etc/rc.d/start
and when I put smth there (even with 775 permitions) it does not start automatically.
(at 2.4. worked ok)
Logged
cocoalcazar
Full Member
***
Offline Offline

Posts: 42



« Reply #7 on: Friday 24 January 2014, 01:57:19 am »

another review to Endian 2.5.2.

Danke.
Logged
razametal
Full Member
***
Offline Offline

Posts: 15


« Reply #8 on: Tuesday 11 March 2014, 10:00:40 am »

This method is not working with EFW 3.0.

Any one knows how to execute one script at start up on EFW 3?
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.125 seconds with 19 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com