Rename basic to generic for console install
This commit is contained in:
parent
9aa8b0dfa3
commit
a41cbf75b0
2 changed files with 40 additions and 2 deletions
38
install/console/generic
Normal file
38
install/console/generic
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
#!/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" off)
|
||||||
|
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)
|
||||||
|
|
||||||
|
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
|
||||||
|
*) 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
|
|
@ -2,7 +2,7 @@
|
||||||
. ./lib
|
. ./lib
|
||||||
|
|
||||||
options=()
|
options=()
|
||||||
options+=("Basic" "")
|
options+=("Generic" "")
|
||||||
options+=("Compression Tools" "")
|
options+=("Compression Tools" "")
|
||||||
options+=("Network Tools" "")
|
options+=("Network Tools" "")
|
||||||
options+=("Webbrowser" "")
|
options+=("Webbrowser" "")
|
||||||
|
@ -18,7 +18,7 @@ fi
|
||||||
sed -i "/^defaultitem=/c\defaultitem=\"$sel\"" $0
|
sed -i "/^defaultitem=/c\defaultitem=\"$sel\"" $0
|
||||||
|
|
||||||
case $sel in
|
case $sel in
|
||||||
"Basic") script install/console/basic;;
|
"Generic") script install/console/generic;;
|
||||||
"Compression Tools") script install/console/compression-tools;;
|
"Compression Tools") script install/console/compression-tools;;
|
||||||
"Network Tools") script install/console/network-tools;;
|
"Network Tools") script install/console/network-tools;;
|
||||||
"Webbrowser") script install/console/webbrowser;;
|
"Webbrowser") script install/console/webbrowser;;
|
||||||
|
|
Loading…
Reference in a new issue