37 lines
979 B
Bash
37 lines
979 B
Bash
#!/bin/bash
|
|
. ./lib
|
|
|
|
options=()
|
|
options+=("Office" "")
|
|
options+=("Internet" "")
|
|
options+=("Multimedia" "")
|
|
options+=("Graphic" "")
|
|
#options+=("Network" "")
|
|
options+=("Dev" "")
|
|
options+=("System" "")
|
|
options+=("PacMan GUI" "")
|
|
#options+=("Games" "")
|
|
|
|
|
|
defaultitem=""
|
|
sel=$(dialog --backtitle "$apptitle" --title "Apps Install Menu :" --default-item "$defaultitem" --cancel-button "Back" --menu "" 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;;
|
|
"Dev") script install/apps/dev/dev;;
|
|
"System") script install/apps/system/system;;
|
|
"PacMan GUI") script install/apps/pacmangui/pacmangui;;
|
|
"Games") script install/apps/games;;
|
|
esac
|
|
|
|
exit 0
|