package: modify install and remove script.
authorKitae Kim <kt920.kim@samsung.com>
Fri, 8 Mar 2013 08:48:49 +0000 (17:48 +0900)
committerKitae Kim <kt920.kim@samsung.com>
Fri, 8 Mar 2013 08:48:49 +0000 (17:48 +0900)
SDK might be installed in the OS that does not have x system.
In case of that, script uses sudo instead of gksudo.

Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
package/changelog
package/emulator-qemu-common.install.ubuntu-32
package/emulator-qemu-common.install.ubuntu-64
package/emulator-qemu-common.remove.ubuntu-32
package/emulator-qemu-common.remove.ubuntu-64
package/pkginfo.manifest

index 0eeb28dd8cdb35e08c44c2a17ab76ddcef0c1743..88e74141855eadfbb0e57a8264225567bd4bee1c 100644 (file)
@@ -1,3 +1,6 @@
+* 1.5.7
+- added routine in case that there is no gksudo.
+== Kitae Kim <kt920.kim@samsung.com> 2013-03-08
 * 1.5.06
 - added tool window style to Key window
 == GiWoong Kim <giwoong.kim@samsung.com> 2013-03-08
index ba1c51fbf4f0a68878b51df19323496e2565354f..e2b45922b0b744d1039f795f27f0090f32543a89 100755 (executable)
@@ -14,6 +14,14 @@ echo "/etc/init.d/tizen-kvm start" >> $TMP_FILE
 echo "update-rc.d tizen-kvm defaults" >> $TMP_FILE
 
 chmod +x $TMP_FILE
-gksudo ./$TMP_FILE
+
+GKSUDO=`which gksudo`
+if [ "$GKSUDO" = "" ]
+then
+       echo "there is no gksudo."
+       sudo ./$TMP_FILE
+else
+       gksudo ./$TMP_FILE
+fi
 
 rm $TMP_FILE
index ba1c51fbf4f0a68878b51df19323496e2565354f..e2b45922b0b744d1039f795f27f0090f32543a89 100755 (executable)
@@ -14,6 +14,14 @@ echo "/etc/init.d/tizen-kvm start" >> $TMP_FILE
 echo "update-rc.d tizen-kvm defaults" >> $TMP_FILE
 
 chmod +x $TMP_FILE
-gksudo ./$TMP_FILE
+
+GKSUDO=`which gksudo`
+if [ "$GKSUDO" = "" ]
+then
+       echo "there is no gksudo."
+       sudo ./$TMP_FILE
+else
+       gksudo ./$TMP_FILE
+fi
 
 rm $TMP_FILE
index f1f106e19c1b60e2c86173073d1b802a85f246e6..26af7354dec974dab3e484506da4018fd22201ec 100755 (executable)
@@ -13,6 +13,14 @@ echo "rm -f /etc/init.d/tizen-kvm" >> $TMP_FILE
 echo "rm -f /lib/udev/rules.d/45-tizen-kvm.rules" >> $TMP_FILE
 
 chmod +x $TMP_FILE
-gksudo ./$TMP_FILE
+
+GKSUDO=`which gksudo`
+if [ "$GKSUDO" = "" ]
+then
+       echo "there is no gksudo."
+       sudo ./$TMP_FILE
+else
+       gksudo ./$TMP_FILE
+fi
 
 rm $TMP_FILE
index f1f106e19c1b60e2c86173073d1b802a85f246e6..26af7354dec974dab3e484506da4018fd22201ec 100755 (executable)
@@ -13,6 +13,14 @@ echo "rm -f /etc/init.d/tizen-kvm" >> $TMP_FILE
 echo "rm -f /lib/udev/rules.d/45-tizen-kvm.rules" >> $TMP_FILE
 
 chmod +x $TMP_FILE
-gksudo ./$TMP_FILE
+
+GKSUDO=`which gksudo`
+if [ "$GKSUDO" = "" ]
+then
+       echo "there is no gksudo."
+       sudo ./$TMP_FILE
+else
+       gksudo ./$TMP_FILE
+fi
 
 rm $TMP_FILE
index b59e15737e6399bc655c9f83e7fc338555f3d969..b58fb1ea63d0bbf2ac1ae6de47a06c4e7ce1ac58 100644 (file)
@@ -1,4 +1,4 @@
-Version: 1.5.06
+Version: 1.5.7
 Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
 Source: emulator