obosdi-pkg/install/console/menu

55 lines
1.4 KiB
Text
Raw Normal View History

2015-08-20 14:37:06 -06:00
#!/bin/bash
. ./lib
options=()
options+=("bash-completion" "Best completion in bash" on)
options+=("lsof" "ls open file" on)
2015-11-01 13:43:11 -07:00
options+=("dmidecode" "Hardware infos" on)
2015-08-20 14:37:06 -06:00
options+=("nmon" "System monitor" on)
options+=("rsync" "Sync files" on)
options+=("zip" "ZIP files" on)
options+=("unzip" "ZIP files" on)
options+=("unrar" "RAR files" on)
options+=("p7zip" "File Archiver" on)
2015-08-20 14:37:06 -06:00
options+=("traceroute" "Trace network route" on)
options+=("bind-tools" "DNS tools (nslookup)" on)
options+=("dnsutils" "DNS tools (nslookup)" off)
2015-08-20 14:37:06 -06:00
options+=("nmap" "Network scanner" off)
options+=("mc" "Dual pane file explorer" off)
options+=("links" "Web browser" off)
options+=("powertop" "power mon and management" off)
#options+=("gpm" "Console mouse support" off)
options+=("wavemon" "WIFI monitor" off)
options+=("net-tools" "(deprecated) old ifconfig" off)
2015-12-17 12:37:28 -07:00
options+=("dialog" "Dialog boxes for script" off)
options+=("ddrescue" "HD recovery tool" off)
options+=("dd_rescue" "HD recovery tool" off)
options+=("partclone" "Copy used block on partition" off)
2015-08-20 14:37:06 -06:00
sel=$(whiptail --backtitle "$apptitle" --title "Console applications :" --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
*) 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