UmVirt LFS Assistant command info

🐒Command info

🔙Parent Directory  -

modules_dialog_demo

Info: Dialog demo for source package installation
Commands:
#!/bin/bash

function firstroutine {
 echo "running moduleA function"
MODULE_A="--with-module-a "
}

function secondroutine {
 echo "running moduleB function"
MODULE_B="--with-module-b "

}

function thirdroutine {
 echo "running moduleC function"
MODULE_C="--with-module-c "

}

function fourthroutine {
 echo "running moduleD function"
MODULE_D="--with-module-d "

}



whiptail --title "Dummy source package install" \
--checklist --separate-output "Select modules to install" 20 40 5 \
"moduleA" "A client" ON \
"moduleB" "B client" OFF \
"moduleC" "C client" OFF \
"moduleD" "D client" OFF 2>modules

exitstatus=$?
if [ $exitstatus = 0 ];  then
     echo "Installing source package"
else
     echo "Installation aborted"
     exit
fi


while read choice
do
        case $choice in
                moduleA) firstroutine
                ;;
                moduleB) secondroutine
                ;;
                moduleC) thirdroutine
                ;;
                moduleD) fourthroutine
                ;;
                *)
                ;;
        esac
done < modules


CONFIGURE_SCRIPT="./configure \
$MODULE_A\
$MODULE_B\
$MODULE_C\
"

echo "Configure command: $CONFIGURE_SCRIPT"


Apache/2.4.62 (Debian) Server at ulfs.org Port 443