#!/bin/bash set -e working_dir="$(dirname $0)" scripts_dir="${working_dir}/includes/" RC=0 RED="$(tput setaf 1)" GREEN="$(tput setaf 2)" YELLOW="$(tput setaf 3)" BLUE="$(tput setaf 4)" NORMAL="$(tput op)" . /etc/grml/lsb-functions einfo "Executing grml-sipwise specific checks..." eindent network_check() { if ${scripts_dir}/check-for-network ; then einfo "Looks like we have working network, continuing..." ; eend 0 else if dialog --yesno "It looks like you don't have a working network connection yet. Do you want to configure the network now?" 0 0 ; then if netcardconfig ; then echo "continue" else echo TODO fi else eerror "no netcardconfig for me :(" ; eend 1 fi fi } report_ssh_password() { local rootpwd=$(grep -Eo '\