X500 X700 X1000 Armed LED FIX

Friday, 13 May 2011 20:31 Stephenw10
Print
Reply with quoteQuote

X500, X700, X1000 Armed Light LED FIX

stephen10wAll credit goes to Stephenw10 from http://www.pfsense.org/forum.  

-Steve-     Here is the new program incorporating all the new values for the X-Core. Obviously rename it WGXepc (remove the .png extension). Copy it to your box and chmod it to 0755. Run it!  Grin  Because the new memory locations were quite high I felt it would be dangerous to simply write all the values on every box, which what the previous programs did. This new one tries to find out which Firebox model it's running on by reading the gpio_sel register and comparing it with known values. It works fine for me here on the three boxes I've tested it on but I don't have an X-Core and I can imagine that a different bios version might cause detection problems. Deal with that if it happens. Hopefully this might stop people randomly installing it on any box and messing with some important setting!  Roll Eyes It seems to run fine on 1.2.3 and 2.0Beta5.  -Steve-

 


 

Steve is a forum regular on www.pfsense.org forum. Steve figured out how to change your LED armed status on your Watchguard X-Series by using his script. You can follow the thread on the link above as it is an interesting thread to read. Grab the file. Then just follow Steves directions and syntax below...  I have streamlined this setup for you - just follow my directions below... -webadmin-

1.) Download & install WINscp - you have to login using 'root' to the IP address of your box

2.) Download LED file here...

3.) Copy file using WINscp to /usr/local/bin

4.) Download script here and copy using WINscp to /usr/local/etc/rc.d 

5.) Change file permissions using WINscp to 0755 of your script - WGXepc.sh

5.) Reboot

-webadmin-

 


-Steve-    
You can use the upload feature in the web gui to copy it /tmp. However /tmp only exists in memory so you have to move it somewhere else if you want it to survive a reboot.
It's up to you where you put the file but /usr/local/bin seems good. Since you are running a full install you shouldn't have any problems with a read-only filesystem.
You can use WinSCP (if you're running Windows) to copy the file directly to /usr/local/bin.

Then you can put a script in /usr/local/etc/rc.d that runs on startup.
Here's mine, called WGXepc.sh
Code:

#!/bin/sh
#
/usr/local/bin/WGXepc -l green

Steve

Edit: And make sure the file permissions are set to 0755 or it won't run. You can do this from WinSCP or from the command line:
Code:

chmod 0755 /usr/local/bin/WGXepc

-webadmin-     This script works on the x700 and I have tested it ok using an HD install... I have not tested this on the imbedded install.
Good luck...
Last Updated on Tuesday, 17 May 2011 22:16