Re: [pfSense Support] Custom startup scripts

2007-10-26 Thread Tortise
Can this be done via the xml to be truly portable?

Kind regards David 

- Original Message - 
From: Joe Laffey [EMAIL PROTECTED]
To: support@pfsense.com
Sent: Thursday, October 25, 2007 7:35 AM
Subject: Re: [pfSense Support] Custom startup scripts


On Wed, 24 Oct 2007, Scott Ullrich wrote:

 On 10/24/07, Joe Laffey [EMAIL PROTECTED] wrote:
 Where is a safe place to put custom startup script that can be run at boot
 time, and will not be wiped by future updates to pfsense?

 Create a script in /usr/local/etc/rc.d/

 Example:

 /usr/local/etc/rc.d/startup.sh

 Be sure the script is a+x and that it ends in .sh to run.

I shall give it a shot.

Thanks!

--
Joe Laffey|   Visual Effects for Film and Video
LAFFEY Computer Imaging   | -
St. Louis, MO |   Show Reel http://LAFFEY.tv/?e07514
USA   | -
. |-*- Digital Fusion Plugins -*-
--
Mail here will be rejected -- Real Trap [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [pfSense Support] Custom startup scripts

2007-10-26 Thread Chris Daniel
You can't make init scripts in the XML config file, no. I don't think 
it's quite within the scope of a configuration file to store scripts, 
anyway. But if you have something you want to be run on boot, use 
shellcmd and earlyshellcmd.


Tortise wrote:

Can this be done via the xml to be truly portable?

Kind regards David 

- Original Message - 
From: Joe Laffey [EMAIL PROTECTED]

To: support@pfsense.com
Sent: Thursday, October 25, 2007 7:35 AM
Subject: Re: [pfSense Support] Custom startup scripts


On Wed, 24 Oct 2007, Scott Ullrich wrote:

  

On 10/24/07, Joe Laffey [EMAIL PROTECTED] wrote:


Where is a safe place to put custom startup script that can be run at boot
time, and will not be wiped by future updates to pfsense?
  

Create a script in /usr/local/etc/rc.d/

Example:

/usr/local/etc/rc.d/startup.sh

Be sure the script is a+x and that it ends in .sh to run.



I shall give it a shot.

Thanks!

--
Joe Laffey|   Visual Effects for Film and Video
LAFFEY Computer Imaging   | -
St. Louis, MO |   Show Reel http://LAFFEY.tv/?e07514
USA   | -
. |-*- Digital Fusion Plugins -*-
--
Mail here will be rejected -- Real Trap [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [pfSense Support] Custom startup scripts

2007-10-26 Thread Bill Marquette
On 10/26/07, Chris Daniel [EMAIL PROTECTED] wrote:
 You can't make init scripts in the XML config file, no. I don't think
 it's quite within the scope of a configuration file to store scripts,
 anyway. But if you have something you want to be run on boot, use
 shellcmd and earlyshellcmd.

Don't forget it's XML and needs to have html entities escaped (
become gt;) else you'll blow up your config file rather
spectacularly.  rm /tmp/config.cache after editing also, else you'll
likely get your changes overwritten from cache.

--Bill

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[pfSense Support] Custom startup scripts

2007-10-24 Thread Joe Laffey
Where is a safe place to put custom startup script that can be run at boot 
time, and will not be wiped by future updates to pfsense?


Thanks,

--
Joe Laffey|   Visual Effects for Film and Video
LAFFEY Computer Imaging   | -
St. Louis, MO |   Show Reel http://LAFFEY.tv/?e07510
USA   | -
. |-*- Digital Fusion Plugins -*-
--
Mail here will be rejected -- Real Trap [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [pfSense Support] Custom startup scripts

2007-10-24 Thread Scott Ullrich
On 10/24/07, Joe Laffey [EMAIL PROTECTED] wrote:
 Where is a safe place to put custom startup script that can be run at boot
 time, and will not be wiped by future updates to pfsense?

Create a script in /usr/local/etc/rc.d/

Example:

/usr/local/etc/rc.d/startup.sh

Be sure the script is a+x and that it ends in .sh to run.

Scott

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [pfSense Support] Custom startup scripts

2007-10-24 Thread Joe Laffey

On Wed, 24 Oct 2007, Scott Ullrich wrote:


On 10/24/07, Joe Laffey [EMAIL PROTECTED] wrote:

Where is a safe place to put custom startup script that can be run at boot
time, and will not be wiped by future updates to pfsense?


Create a script in /usr/local/etc/rc.d/

Example:

/usr/local/etc/rc.d/startup.sh

Be sure the script is a+x and that it ends in .sh to run.


I shall give it a shot.

Thanks!

--
Joe Laffey|   Visual Effects for Film and Video
LAFFEY Computer Imaging   | -
St. Louis, MO |   Show Reel http://LAFFEY.tv/?e07514
USA   | -
. |-*- Digital Fusion Plugins -*-
--
Mail here will be rejected -- Real Trap [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]