Public feed #892359

Anonymous

public text v1 · immutable
Raw Edit
·published 2008-02-05 10:24 UTC
rendered paste body
#!/bin/bash

touch /tmp/dialogtmp && FICHTMP=/tmp/dialogtmp
trap "rm -f $FICHTMP" 0 1 2 3 5 15

function  build_iso() {

        PLOP=1
        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}
        

        DATA_DIR=`cat ${FICHTMP}`

        if [ -d ${DATA_DIR} ] ; then

                cd ${DATA_DIR}

                PLOP=0
        else
                PLOP=1
        fi
return ${PLOP}
}

build_iso