Public feed #892295

Anonymous

public text v1 · immutable
Raw Edit
·published 2008-02-05 08:36 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() {

        foobar
        while [ "${RETVAL}" != "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}
        
        fi

}

build_iso