summaryrefslogtreecommitdiff
path: root/scripts/mode-util
blob: e88de20afebc0a60a74985a41392b280a46c08ee (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 option" 15 70 15 \
"preset" "Browse through the download.tizen.org directories and select the image that you want to install." \
"url" "Put the whole url of the image that you want to install."

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

exit 0