1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 23:08:07 +00:00

Add CLI teleporter feature

This commit is contained in:
DL6ER 2017-03-05 14:08:44 +01:00
parent 05640f9a6b
commit baefec86f2
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD

View File

@ -410,6 +410,12 @@ SetListeningMode(){
}
Teleporter()
{
local datetimestamp=$(date "+%Y-%m-%d_%H-%M-%S")
php /var/www/html/admin/scripts/pi-hole/php/teleporter.php > "pi-hole-teleporter_${datetimestamp}.zip"
}
main() {
args=("$@")
@ -435,6 +441,7 @@ main() {
"removestaticdhcp" ) RemoveDHCPStaticAddress;;
"hostrecord" ) SetHostRecord;;
"-i" | "interface" ) SetListeningMode;;
"-t" | "teleporter" ) Teleporter;;
* ) helpFunc;;
esac