obosdi-pkg/install/apps/menu

38 lines
981 B
Text
Raw Normal View History

2015-12-06 16:41:56 -07:00
#!/bin/bash
. ./lib
options=()
options+=("Office" "")
options+=("Internet" "")
options+=("Multimedia" "")
options+=("Graphic" "")
#options+=("Network" "")
2018-08-08 16:36:33 -06:00
options+=("Dev" "")
2015-12-06 16:41:56 -07:00
options+=("System" "")
options+=("PacMan GUI" "")
#options+=("Games" "")
defaultitem=""
sel=$(whiptail --backtitle "$apptitle" --title "Apps Install Menu :" --menu "" --default-item "$defaultitem" --cancel-button "Back" 0 0 0 \
"${options[@]}" \
3>&1 1>&2 2>&3)
if [ ! "$?" = "0" ]; then
exit 1
fi
sed -i "/^defaultitem=/c\defaultitem=\"$sel\"" $0
case $sel in
"Office") menu install/apps/office/menu;;
"Internet") menu install/apps/internet/menu;;
"Multimedia") menu install/apps/multimedia/menu;;
"Graphic") script install/apps/graphic/graphic;;
"Network") script install/apps/network;;
2018-08-08 16:36:33 -06:00
"Dev") script install/apps/dev/dev;;
2015-12-06 16:41:56 -07:00
"System") script install/apps/system/system;;
"PacMan GUI") script install/apps/pacmangui/pacmangui;;
"Games") script install/apps/games;;
esac
exit 0