Public feed
#892360
#!/bin/bash
touch /tmp/dialogtmp && FICHTMP=/tmp/dialogtmp
trap "rm -f $FICHTMP" 0 1 2 3 5 15
PLOP=0
function build_iso() {
until [ "${PLOP}" != "0" ]
do
foobar
done
}
function foobar () {
DIALOG=${DIALOG=dialog}
$DIALOG --backtitle "Kickstart Generator" --clear \
--inputbox "Entrer le chemin vers le répertoire contenant les données du DVD :" 16 60 2> ${FICHTMP}
VALRET=$?
DATA_DIR=`cat ${FICHTMP}`
if [[ -d ${DATA_DIR} ]] ; then
cd ${DATA_DIR}
pwd
PLOP=1
else
PLOP=0
fi
return ${PLOP}
}
build_iso