[Title] Modify startup.sh for supporting other linux OS
authorTaeyoung Son <taeyoung2.son@samsung.com>
Fri, 7 Jun 2013 01:55:02 +0000 (10:55 +0900)
committerTaeyoung Son <taeyoung2.son@samsung.com>
Fri, 7 Jun 2013 01:55:02 +0000 (10:55 +0900)
[Desc.]
[Issue]

Change-Id: Ib2242e122635a4ec46d9b74f91bb1f93206bd3cc

org.tizen.base.feature/rootfiles_for_linux/startup.sh

index 7796569..77a0fd8 100755 (executable)
@@ -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}
-