From ad838252aabd338687566eaa55999765ee5771b5 Mon Sep 17 00:00:00 2001 From: Taeyoung Son Date: Fri, 7 Jun 2013 10:55:02 +0900 Subject: [PATCH] [Title] Modify startup.sh for supporting other linux OS [Desc.] [Issue] Change-Id: Ib2242e122635a4ec46d9b74f91bb1f93206bd3cc --- org.tizen.base.feature/rootfiles_for_linux/startup.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/org.tizen.base.feature/rootfiles_for_linux/startup.sh b/org.tizen.base.feature/rootfiles_for_linux/startup.sh index 7796569..77a0fd8 100755 --- a/org.tizen.base.feature/rootfiles_for_linux/startup.sh +++ b/org.tizen.base.feature/rootfiles_for_linux/startup.sh @@ -24,11 +24,14 @@ then eclipse_options="-clean ${eclipse_options}" fi -linux_name=`cat /etc/issue | awk '{print $1}' | tr [A-Z] [a-z]` -linux_version=`cat /etc/issue | awk '{print $2}'` -linux_main_version=`expr substr $linux_version 1 5` +if [ -e /etc/issue ] +then + linux_name=`cat /etc/issue | awk '{print $1}' | tr [A-Z] [a-z]` + linux_version=`cat /etc/issue | awk '{print $2}'` + linux_main_version=`expr substr $linux_version 1 5` +fi -if [ ${linux_name} = "ubuntu" ] +if [ "${linux_name}" = "ubuntu" ] then case ${linux_main_version} in 11.04|11.10|12.04|12.10) @@ -37,7 +40,8 @@ then *) GDK_NATIVE_WINDOWS=true ./eclipse ${eclipse_options} esac +else + GDK_NATIVE_WINDOWS=true ./eclipse ${eclipse_options} fi cd ${start_path} - -- 2.7.4