obosdi-pkg/install/console/basic

39 lines
835 B
Text
Raw Normal View History

2016-04-08 18:26:54 -06:00
#!/bin/bash
. ./lib
options=()
options+=("bash-completion" "Best completion in bash" on)
options+=("lsof" "ls open file" on)
options+=("dmidecode" "Hardware infos" on)
options+=("nmon" "System monitor" on)
options+=("mc" "Dual pane file explorer" off)
options+=("powertop" "power mon and management" off)
options+=("dialog" "Dialog boxes for script" off)
options+=("gpm" "Console mouse support" off)
2016-04-08 18:39:33 -06:00
sel=$(whiptail --backtitle "$apptitle" --title "Console Basic packages :" --checklist "" --cancel-button "Back" 0 0 0 \
2016-04-08 18:26:54 -06:00
"${options[@]}" \
3>&1 1>&2 2>&3)
if [ ! "$?" = "0" ]; then
exit 1
fi
for itm in $sel; do
case $itm in
*) 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