#!/usr/bin/env bash readonly toolName=pi-hole step_1_info() { echo "${toolName} statue"; } step_1_alias() { echo "status"; } step_1() { local piholeCmd= if ! piholeCmd="$(command -v pihole)" ; then warning "${toolName} not installed" return 1 fi exe "${piholeCmd}" status } step_3_alias() { echo "restart"; } step_3() { exe service pihole-FTL restart exe pihole restartdns } step_10_info() { echo "Install ${toolName} using the offical installer" echoinfo "https://install.pi-hole.net" } step_10_alias() { echo "install"; } step_10() { exep curl -sSL https://install.pi-hole.net \| bash } step_11_info() { echo 'Notes'; } step_11_alias() { echo 'notes'; } step_11() { color green cat <