#raspguard_check#
###Summary###
raspguard_check is part of a software suite from Neighborhood Guard to upload images from IP cameras and organize them into Web pages for easy access and review.
raspguard_check is a script intended run on a Raspberry Pi that serves an IP camera. The camera get its IP address from the Raspberry Pi dhcp server. If the Raspberry Pi comes online before the Camera on a direct connection setup (no hub or switch) then the isc-dhcp-server on the raspberry will fail to start as the ethernet is seen as down.
this script will check to see if the dhcp daemon is not running at start it as needed. After starting the dhcpd, the script will toggle the eth port down and up to force a renew of the dhcp lease by the Ip camera
This script will also determine Wifi connectivity to the internet (www.google.com) and lan connectivity to the camera. If either is absent it will bounce the interface.
###Installation and Configuration###
Download raspguard_check to /usr/local/bin
sudo wget https://raw.github.com/JesperJurcenoks/raspguard_check/master/raspguard_check -O /usr/local/bin/raspguard_check
Give raspguard_check execute rights
sudo chmod +x /usr/local/bin/raspguard_check
Setup Cron entry
sudo crontab -e
add the following line at the end of the crontab
*/5 * * * * sudo /usr/local/bin/raspguard_check
###License###
raspguard_check is open-source software available under the terms of the Affero GPL 3.0 license. If the Affero GPL license does not meet your needs, other licensing arrangements are available from Neighborhood Guard, Inc.
###Contact Information### If you have questions about this software, please contact:
Douglas Kerr, dougk at halekerr dot com, Board member for Software
or,
Jesper Jurcennoks, jesper at jurcenoks dot com, President