mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Removed debug echos
This commit is contained in:
parent
f667298b64
commit
3aba1607b2
1 changed files with 0 additions and 3 deletions
3
pihole
3
pihole
|
@ -120,16 +120,13 @@ piholeEnable() {
|
||||||
if [[ $# > 1 ]] ; then
|
if [[ $# > 1 ]] ; then
|
||||||
if [ -x "$(command -v nohup)" ]; then
|
if [ -x "$(command -v nohup)" ]; then
|
||||||
if [[ ${2} == *"s"* ]] ; then
|
if [[ ${2} == *"s"* ]] ; then
|
||||||
echo "Seconds"
|
|
||||||
tt=${2%"s"}
|
tt=${2%"s"}
|
||||||
echo "::: Blocking will be reenabled in ${tt} seconds"
|
echo "::: Blocking will be reenabled in ${tt} seconds"
|
||||||
echo "sleep ${tt}; pihole enable"
|
|
||||||
nohup bash -c "sleep ${tt}; pihole enable" </dev/null &>/dev/null &
|
nohup bash -c "sleep ${tt}; pihole enable" </dev/null &>/dev/null &
|
||||||
elif [[ ${2} == *"m"* ]] ; then
|
elif [[ ${2} == *"m"* ]] ; then
|
||||||
tt=${2%"m"}
|
tt=${2%"m"}
|
||||||
echo "::: Blocking will be reenabled in ${tt} minutes"
|
echo "::: Blocking will be reenabled in ${tt} minutes"
|
||||||
tt=$((${tt}*60))
|
tt=$((${tt}*60))
|
||||||
echo "sleep ${tt}; pihole enable"
|
|
||||||
nohup bash -c "sleep ${tt}; pihole enable" </dev/null &>/dev/null &
|
nohup bash -c "sleep ${tt}; pihole enable" </dev/null &>/dev/null &
|
||||||
else
|
else
|
||||||
echo "::: Unknown format for delayed reactivation of the blocking!"
|
echo "::: Unknown format for delayed reactivation of the blocking!"
|
||||||
|
|
Loading…
Reference in a new issue