mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Merge pull request #1298 from pi-hole/new/teleporter
Add CLI Teleporter feature
This commit is contained in:
commit
9c119f919e
1 changed files with 7 additions and 0 deletions
|
@ -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() {
|
main() {
|
||||||
|
|
||||||
args=("$@")
|
args=("$@")
|
||||||
|
@ -435,6 +441,7 @@ main() {
|
||||||
"removestaticdhcp" ) RemoveDHCPStaticAddress;;
|
"removestaticdhcp" ) RemoveDHCPStaticAddress;;
|
||||||
"hostrecord" ) SetHostRecord;;
|
"hostrecord" ) SetHostRecord;;
|
||||||
"-i" | "interface" ) SetListeningMode;;
|
"-i" | "interface" ) SetListeningMode;;
|
||||||
|
"-t" | "teleporter" ) Teleporter;;
|
||||||
* ) helpFunc;;
|
* ) helpFunc;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue