add initial LEGOS package list, initial code for install_{desktop,pkg}

This commit is contained in:
levasseur
2021-06-16 18:36:24 +02:00
parent 7c336cede2
commit bf694f7c57
6 changed files with 128 additions and 14 deletions

View File

@@ -0,0 +1,24 @@
# Install desktop environment -- Ubuntu only
# Debian version might ask for task-$FLAVOR
export VER_install_desktop="0.0.1"
install_desktop()
{
[[ $X11_DRV ]] &&
prnt I "Installation de pilotes supplémentaires X11..." &&
pkginst $X11_DRV
[[ $UBUNTU_FLAVOR ]] &&
prnt I "Installation de l'environnement $UBUNTU_FLAVOR..." &&
pkginst ${UBUNTU_FLAVOR}-desktop
}
precheck_install_desktop()
{
[[ ! $UBUNTU_FLAVOR ]] && prnt W "Pas de saveur Ubuntu choisi, \
aucun environnement de bureau ne sera installé !"
[[ $X11_DRV ]] && prnt W "Des pilotes non libres seront installé."
}
export -f install_desktop
export -f precheck_install_desktop

18
modules/install_pkg.sh Normal file
View File

@@ -0,0 +1,18 @@
# Install des paquets -- Debian et Ubuntu
export VER_install_pkg="0.0.1"
install_pkg()
{
[[ $PKGLIST ]] &&
prnt I "Installation des la sélection de paquets..." &&
pkginst $PKGSEL
}
precheck_install_pkg()
{
[[ ! $PKGLIST ]] && prnt W "Pas de paquet additionel à installer !"
}
export -f install_pkg
export -f precheck_install_pkg