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."
+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")
# Being connected to the internet before launching this script is
# better. If you aren't connected, a wifi configuration script will be fired.
+
echo -e "2\t2\t2\t2" > /proc/sys/kernel/printk
chvt 2
export HOME="/root"
+# disable journald log
+systemctl stop systemd-journald.service
+systemctl mask systemd-journald.service
+
# Used to retrieve output of the other scripts
output_data_file="/tmp/system-installer.$$"
# os install confirmation
os_install_lost="Do you want to proceed with the installation ? All your data on the target device will be lost."
-$DIALOG --yesno "${os_install_lost}" 15 70 || sigint_handler
+$DIALOG --defaultno --yesno "${os_install_lost}" 15 70 || sigint_handler
# Download and install the image"
install_os
#!/bin/bash
outfile=${1:-/dev/stdout}
-mode=${2:-"basic"}
+mode=${2:-"preset"}
BASE_URL="http://download.tizen.org/"
IMAGE_URL=
#######################################################
-if [ "$mode" = "custom" ]; then
+if [ "$mode" = "preset" ]; then
IMAGE_URL+=$BASE_URL
select_topdir || exit 1
IMAGE_URL+=$(echo $curdir/*.raw.*)
-elif [ "$mode" = "basic" ]; then
+elif [ "$mode" = "url" ]; then
enter_url
fi