Removed check for availability of nohup

This commit is contained in:
DL6ER 2016-11-17 23:31:11 +01:00
parent 3aba1607b2
commit c6857501aa

7
pihole
View file

@ -118,7 +118,6 @@ piholeEnable() {
sed -i 's/^addn-hosts/#addn-hosts/' /etc/dnsmasq.d/01-pihole.conf
echo "::: Blocking has been disabled!"
if [[ $# > 1 ]] ; then
if [ -x "$(command -v nohup)" ]; then
if [[ ${2} == *"s"* ]] ; then
tt=${2%"s"}
echo "::: Blocking will be reenabled in ${tt} seconds"
@ -135,10 +134,6 @@ piholeEnable() {
echo "::: pihole disable 7m - will disable blocking for 7 minutes"
echo "::: Blocking will not automatically be reenabled!"
fi
else
echo "::: Command 'nohup' has to be available for this feature."
echo "::: Blocking will not automatically be reenabled!"
fi
fi
else
#Enable pihole
@ -247,7 +242,7 @@ case "${1}" in
"-q" | "query" ) queryFunc "$@";;
"-l" | "logging" ) piholeLogging "$@";;
"uninstall" ) uninstallFunc;;
"enable" ) piholeEnable 1 $2;;
"enable" ) piholeEnable 1;;
"disable" ) piholeEnable 0 $2;;
"status" ) piholeStatus "$2";;
"restartdns" ) restartDNS;;