![]() The company has the ability to use samba, but they have a bug in the firmware for two of my cameras. I use FTP because I have some security cameras around the property that FTP images to a server when they sense motion. If this isn't the case, then I'd love to be able to streamline the script. ![]() I was under the understanding that whenever a Firewalla Gold reboots it removes all customizations. You can always remove or comment out some of the logging when it is confirmed to be That's dpkg query is a great addition to my limited unix knowledge. You can run it and when needed try rebooting to see what is firing and what is not. I would probably error to mounting something under an area Firewalla expects to have user content-even if that isn't necessary.Īgain, to debug you should use "bash -x" and/or log each significant action so you can see what is happening at every step. I would definitely add a check to the reboot script to test if the mount exists and redo it if it does not. To be honest, I don't know exactly how Firewalla reacts to remounting file systems. For this reason, I didn't think it really mattered if I used /data or not. The actual upload location isn't on the Firewalla. If you want to make sure something is installed just call the installs script before anything else.Īdding rows to an existing file is simple to do if that's needed. What happens on reboot should be separate from any configuration stuff. You are copying a script that does the entire installation to another location. Personally I wouldn't put passwords in the file.Is X already mounted? If Yes, do nothing.Is X already running? If yes, do nothing if no start it.Does X file or directory already exist? If yes, do Y, if not, do not.Anything you install may be removed so you should check to see what needs to be done before doing it. ![]() That is why you should put your stuff there. Certain directories do not get removed ever. It will be incorporated to the system crontab when Firewalla service restarts.įirewalla does not remove everything on every reboot. To create scheduled jobs, you may add your own cronjob by putting cronjob expression in this file. Note: Please make sure your scripts can be executed multiple times at unscheduled time because it will be called every time Firewalla service restarts.Įxample: Install package "iftop" #!/bin/bash sudo apt-get update For example: $ cat /home/pi/.firewalla/config/post_main.d/hello.sh $ sudo chmod +x /home/pi/.firewalla/config/post_main.d/hello.shĪny files ending with ".sh" will be executed using vi or nano. $ sudo touch /home/pi/.firewalla/config/post_main.d/hello.sh $ cd /home/pi/.firewalla/config/post_main.d/Ĭreate a file ending in with ".sh" and make it executable. These scripts can be placed under this folder /home/pi/.firewalla/config/post_main.d/ (create this folder if it does not exist) $ sudo mkidir /home/pi/.firewalla/config/post_main.d/ You can add some scripts to Gold/Purple so that it can be automatically executed when Firewalla service restarts (for example, when Gold/Purple reboots or software updates). Incorrect scripting may cause system corruption that you may have to reset factory default or even reflash the disk.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |