obosdi-pkg/install/console/generic

45 lines
1.1 KiB
Text
Raw Normal View History

#!/bin/bash
. ./lib
options=()
2018-09-30 03:21:57 +02:00
options+=("pacman-contrib" "Pacman contrib tools" on)
2017-12-16 21:31:51 +01:00
options+=("base-devel" "Build tools" on)
options+=("bash-completion" "Best completion in bash" on)
options+=("lsof" "ls open file" on)
options+=("dmidecode" "Hardware infos" on)
2016-12-04 21:09:28 +01:00
options+=("dialog" "Dialog boxes for script" on)
options+=("nmon" "System monitor" off)
options+=("mc" "Dual pane file explorer" off)
2018-09-16 03:36:14 +02:00
options+=("vim" "Vi Improved" off)
2018-09-22 21:38:23 +02:00
options+=("neofetch" "system information tool" off)
options+=("powertop" "power mon and management" off)
options+=("gpm" "Console mouse support" off)
options+=("liveroot" "(AUR) root overlay fs" off)
sel=$(whiptail --backtitle "$apptitle" --title "Console Generic packages :" --checklist "" --cancel-button "Back" 0 0 0 \
"${options[@]}" \
3>&1 1>&2 2>&3)
if [ ! "$?" = "0" ]; then
exit 1
fi
for itm in $sel; do
case $itm in
'"liveroot"') aurpkg="$aurpkg $(echo $itm | sed 's/"//g')";;
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
esac
done
instpkg "$pkg" "$aurpkg"
for itm in $sel; do
case $itm in
'"gpm"')
svcstart gpm
svcenable gpm
;;
esac
done
exit 0