summaryrefslogtreecommitdiff
path: root/scripts/mode-util
blob: 63a082a5a509d67faeb76b8c0be843087ac7c64d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

# Select a keyboard layout in a menu

outfile=${1:-/dev/stdout}
utilspath=/usr/lib/system-installer

. $utilspath/dialog-helper

trap "exit 1" SIGINT

dialog_helper --no-items --item-help --menu "Select your installation mode" 15 70 15 \
"basic" "Put the whole url of the image that you want to install." \
"custom" "Browse through the download.tizen.org directories and select the image that you want to install."

cat << EOC > $outfile
$(echo "$DIALOGRES")
EOC

exit 0