touch /etc/modules.conf
fi
# Check for dialog, whiptail, gdialog, awk, ... ?
# Check for dialog, gdialog, awk, ... ?
if which dialog > /dev/null; then
DIALOG=dialog
else
if which whiptail > /dev/null; then
echo "Error, dialog not found."
whiptail_wrapper() {
exit 1
X1="$1"
X2="$2"
if [ $1 = --yesno ]; then
X3=`expr $3 + 2`
X3=$3
shift 3
whiptail "$X1" "$X2" $X3 "$@"
}
DIALOG=whiptail_wrapper
echo "Error, dialog or whiptail not found."
if which awk > /dev/null; then :