diff options
author | V3n3RiX <venerix@rogentos.ro> | 2016-03-06 15:11:16 +0000 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2016-03-06 15:11:16 +0000 |
commit | 20cd8243888a27f260e93452c12c2e9dda0f854f (patch) | |
tree | e888359eba3b0f73db2315587c910679355a4377 | |
parent | f9a1a1ca178d5b9e89c6bf6bf7844e3edb96ed23 (diff) |
improve system core choice, no longer input based, but menu based
-rwxr-xr-x | vasile | 45 |
1 files changed, 25 insertions, 20 deletions
@@ -8,27 +8,32 @@ # generic variables echo -e "" -echo -e "Type in the core you want me to use (Kogaion or Argent)" +echo -e "Choose the system core you want me to use" echo -e "" -read -e "basename" -if [[ "$basename" = "Kogaion" ]] ; then - echo -e "" - echo -e "Adjusting variables for Kogaion Desktop 3" - export local releasename="kogaion" - export local releasetarget="desktop" - export local releaseversion="3" - export local kernelver="3.14.50-"$releasename"" -elif [[ "$basename" = "Argent" ]] ; then - echo -e "" - echo -e "Adjusting variables for Argent Server 2" - export local releasename="argent" - export local releasetarget="server" - export local releaseversion="2" - export local kernelver="3.14.51-"$releasename"" -else - echo -e "Ooops, wrong basename "$basename"...it must be Kogaion or Argent...bye bye" - exit 1 -fi +OPTIONS="Kogaion Argent" +select systemcore in $OPTIONS; do + if [[ "$systemcore" = "Kogaion" ]] ; then + echo -e "" + echo -e "Adjusting variables for Kogaion Desktop 3" + export local releasename="kogaion" + export local releasetarget="desktop" + export local releaseversion="3" + export local kernelver="3.14.50-"$releasename"" + break + elif [[ "$systemcore" = "Argent" ]] ; then + echo -e "" + echo -e "Adjusting variables for Argent Server 2" + export local releasename="argent" + export local releasetarget="server" + export local releaseversion="2" + export local kernelver="3.14.51-"$releasename"" + break + else + echo -e "" + echo -e "Wrong choice, bye bye" + exit 1 + fi +done # arch independent build variables |