2016-08-12 17:34:31 -06:00
|
|
|
#!/bin/bash
|
|
|
|
. ./lib
|
|
|
|
|
|
|
|
options=()
|
2022-11-20 14:41:18 -07:00
|
|
|
options+=("sudo" "Superuser do" on)
|
2019-10-06 14:48:22 -06:00
|
|
|
options+=("nano" "Editor" on)
|
|
|
|
options+=("vim" "Editor" on)
|
|
|
|
options+=("vi" "Editor" off)
|
2022-11-17 15:44:28 -07:00
|
|
|
options+=("wget" "Retrieving files from Internet" on)
|
2020-03-09 13:43:40 -06:00
|
|
|
options+=("bash-completion" "Completion for bash" on)
|
2020-03-09 13:43:12 -06:00
|
|
|
options+=("usbutils" "USB Device Utilities" on)
|
2016-08-12 17:34:31 -06:00
|
|
|
options+=("lsof" "ls open file" on)
|
|
|
|
options+=("dmidecode" "Hardware infos" on)
|
2016-12-04 13:09:28 -07:00
|
|
|
options+=("dialog" "Dialog boxes for script" on)
|
2022-10-15 17:38:22 -06:00
|
|
|
options+=("linux-firmware" "Firmware files for Linux" on)
|
2016-08-12 17:34:31 -06:00
|
|
|
options+=("nmon" "System monitor" off)
|
|
|
|
options+=("mc" "Dual pane file explorer" off)
|
2018-09-22 13:38:23 -06:00
|
|
|
options+=("neofetch" "system information tool" off)
|
2022-10-15 17:37:48 -06:00
|
|
|
options+=("base-devel" "Build tools" off)
|
2021-02-17 18:01:17 -07:00
|
|
|
options+=("fwupd" "Firmware upgrade" off)
|
2016-08-12 17:34:31 -06:00
|
|
|
options+=("powertop" "power mon and management" off)
|
|
|
|
options+=("gpm" "Console mouse support" off)
|
2019-02-02 14:35:27 -07:00
|
|
|
options+=("liveroot" "(AUR) root overlay fs" off)
|
2016-08-12 17:34:31 -06:00
|
|
|
|
2022-11-10 14:27:23 -07:00
|
|
|
sel=$(dialog --backtitle "$apptitle" --title "Console Generic packages :" --cancel-button "Back" --checklist "" 0 0 0 \
|
2016-08-12 17:34:31 -06:00
|
|
|
"${options[@]}" \
|
|
|
|
3>&1 1>&2 2>&3)
|
|
|
|
if [ ! "$?" = "0" ]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
for itm in $sel; do
|
|
|
|
case $itm in
|
2022-11-10 14:27:23 -07:00
|
|
|
"liveroot") aurpkg="$aurpkg $(echo $itm | sed 's/"//g')";;
|
2016-08-12 17:34:31 -06:00
|
|
|
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
instpkg "$pkg" "$aurpkg"
|
|
|
|
|
|
|
|
for itm in $sel; do
|
|
|
|
case $itm in
|
2022-11-10 14:27:23 -07:00
|
|
|
"gpm")
|
2016-08-12 17:34:31 -06:00
|
|
|
svcstart gpm
|
|
|
|
svcenable gpm
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
exit 0
|