View | Details | Raw Unified | Return to bug 3824
Collapse All | Expand All

(-)alsa-utils-1.0.4/alsaconf/alsaconf.in.orig (-18 / +3 lines)
Lines 172-198 Link Here
172
  touch /etc/modules.conf
172
  touch /etc/modules.conf
173
fi
173
fi
174
174
175
# Check for dialog, whiptail, gdialog, awk, ... ?
175
# Check for dialog, gdialog, awk, ... ?
176
if which dialog > /dev/null; then
176
if which dialog > /dev/null; then
177
  DIALOG=dialog
177
  DIALOG=dialog
178
else
178
else
179
  if which whiptail > /dev/null; then
179
  echo "Error, dialog not found."
180
    whiptail_wrapper() {
180
  exit 1
181
      X1="$1"
182
      X2="$2"
183
      if [ $1 = --yesno ]; then
184
        X3=`expr $3 + 2`
185
      else
186
        X3=$3
187
      fi
188
      shift 3
189
      whiptail "$X1" "$X2" $X3 "$@"
190
    }
191
    DIALOG=whiptail_wrapper
192
  else
193
    echo "Error, dialog or whiptail not found."
194
    exit 1
195
  fi
196
fi
181
fi
197
if which awk > /dev/null; then :
182
if which awk > /dev/null; then :
198
else
183
else

Return to bug 3824