Revert "Merge branch 'spin-develop' into tizen" 32/39332/1 archives/tizen_20150513
authorSangho Park <sangho1206.park@samsung.com>
Wed, 13 May 2015 07:22:41 +0000 (16:22 +0900)
committerSangho Park <sangho1206.park@samsung.com>
Wed, 13 May 2015 07:27:54 +0000 (16:27 +0900)
This reverts commit 35eb64714feb7dc58affc0a8e9e74da4a8d20adc, reversing
changes made to ff58b3c839a627da9d2e894df78fd8b699123e20.

Change-Id: I178baeb2e834a0aa102e5d1296fd1b54edd4f44e
Signed-off-by: Sangho Park <sangho1206.park@samsung.com>
22 files changed:
AUTHORS
LICENSE
NOTICE
filesystem/etc/emulator/model-config.sh [deleted file]
filesystem/etc/emulator/select-boot-animation.sh [deleted file]
filesystem/etc/inittab [changed mode: 0644->0755]
filesystem/etc/profile.d/proxy_setting.sh
filesystem/etc/rc.d/rc.sysinit
filesystem/etc/systemd/default-extra-dependencies/ignore-units [deleted file]
filesystem/usr/lib/systemd/system/emul-common-preinit.service
filesystem/usr/lib/systemd/system/emul-setup-audio-volume.service
filesystem/usr/lib/systemd/system/tizen-boot.target [deleted file]
filesystem/usr/lib/systemd/system/tizen-generate-env.service [deleted file]
filesystem/usr/lib/systemd/system/tizen-readahead-collect.service [deleted file]
filesystem/usr/lib/systemd/system/tizen-readahead-replay.service [deleted file]
filesystem/usr/lib/systemd/system/tizen-runtime.target [deleted file]
filesystem/usr/lib/systemd/system/tizen-system.target [deleted file]
filesystem/usr/lib/systemd/system/wm_ready.service [deleted file]
filesystem/usr/lib/udev/rules.d/51-tizen-udev-default.rules [deleted file]
filesystem/usr/lib/udev/rules.d/95-tizen-emulator.rules
packaging/system-plugin-emulator.changes
packaging/system-plugin-emulator.spec

diff --git a/AUTHORS b/AUTHORS
index c9d544d..978df0f 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -1,5 +1,7 @@
 YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+DaiYoung Kim <daiyoung777.kim@samsung.com>
 SeokYeon Hwang <syeon.hwang@samsung.com>
+SangJin Kim <sangjin3.kim@samsung.com>
 KiTae Kim <kt920.kim@samsung.com>
 JinHyung Jo <jinhyung.jo@samsung.com>
 SungMin Ha <sungmin82.ha@samsung.com>
diff --git a/LICENSE b/LICENSE
index f94008a..bbe9d02 100644 (file)
--- a/LICENSE
+++ b/LICENSE
-Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
-
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright [yyyy] [name of copyright owner]
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-
-
-
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
+\r
+                                 Apache License\r
+                           Version 2.0, January 2004\r
+                        http://www.apache.org/licenses/\r
+\r
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\r
+\r
+   1. Definitions.\r
+\r
+      "License" shall mean the terms and conditions for use, reproduction,\r
+      and distribution as defined by Sections 1 through 9 of this document.\r
+\r
+      "Licensor" shall mean the copyright owner or entity authorized by\r
+      the copyright owner that is granting the License.\r
+\r
+      "Legal Entity" shall mean the union of the acting entity and all\r
+      other entities that control, are controlled by, or are under common\r
+      control with that entity. For the purposes of this definition,\r
+      "control" means (i) the power, direct or indirect, to cause the\r
+      direction or management of such entity, whether by contract or\r
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the\r
+      outstanding shares, or (iii) beneficial ownership of such entity.\r
+\r
+      "You" (or "Your") shall mean an individual or Legal Entity\r
+      exercising permissions granted by this License.\r
+\r
+      "Source" form shall mean the preferred form for making modifications,\r
+      including but not limited to software source code, documentation\r
+      source, and configuration files.\r
+\r
+      "Object" form shall mean any form resulting from mechanical\r
+      transformation or translation of a Source form, including but\r
+      not limited to compiled object code, generated documentation,\r
+      and conversions to other media types.\r
+\r
+      "Work" shall mean the work of authorship, whether in Source or\r
+      Object form, made available under the License, as indicated by a\r
+      copyright notice that is included in or attached to the work\r
+      (an example is provided in the Appendix below).\r
+\r
+      "Derivative Works" shall mean any work, whether in Source or Object\r
+      form, that is based on (or derived from) the Work and for which the\r
+      editorial revisions, annotations, elaborations, or other modifications\r
+      represent, as a whole, an original work of authorship. For the purposes\r
+      of this License, Derivative Works shall not include works that remain\r
+      separable from, or merely link (or bind by name) to the interfaces of,\r
+      the Work and Derivative Works thereof.\r
+\r
+      "Contribution" shall mean any work of authorship, including\r
+      the original version of the Work and any modifications or additions\r
+      to that Work or Derivative Works thereof, that is intentionally\r
+      submitted to Licensor for inclusion in the Work by the copyright owner\r
+      or by an individual or Legal Entity authorized to submit on behalf of\r
+      the copyright owner. For the purposes of this definition, "submitted"\r
+      means any form of electronic, verbal, or written communication sent\r
+      to the Licensor or its representatives, including but not limited to\r
+      communication on electronic mailing lists, source code control systems,\r
+      and issue tracking systems that are managed by, or on behalf of, the\r
+      Licensor for the purpose of discussing and improving the Work, but\r
+      excluding communication that is conspicuously marked or otherwise\r
+      designated in writing by the copyright owner as "Not a Contribution."\r
+\r
+      "Contributor" shall mean Licensor and any individual or Legal Entity\r
+      on behalf of whom a Contribution has been received by Licensor and\r
+      subsequently incorporated within the Work.\r
+\r
+   2. Grant of Copyright License. Subject to the terms and conditions of\r
+      this License, each Contributor hereby grants to You a perpetual,\r
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\r
+      copyright license to reproduce, prepare Derivative Works of,\r
+      publicly display, publicly perform, sublicense, and distribute the\r
+      Work and such Derivative Works in Source or Object form.\r
+\r
+   3. Grant of Patent License. Subject to the terms and conditions of\r
+      this License, each Contributor hereby grants to You a perpetual,\r
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\r
+      (except as stated in this section) patent license to make, have made,\r
+      use, offer to sell, sell, import, and otherwise transfer the Work,\r
+      where such license applies only to those patent claims licensable\r
+      by such Contributor that are necessarily infringed by their\r
+      Contribution(s) alone or by combination of their Contribution(s)\r
+      with the Work to which such Contribution(s) was submitted. If You\r
+      institute patent litigation against any entity (including a\r
+      cross-claim or counterclaim in a lawsuit) alleging that the Work\r
+      or a Contribution incorporated within the Work constitutes direct\r
+      or contributory patent infringement, then any patent licenses\r
+      granted to You under this License for that Work shall terminate\r
+      as of the date such litigation is filed.\r
+\r
+   4. Redistribution. You may reproduce and distribute copies of the\r
+      Work or Derivative Works thereof in any medium, with or without\r
+      modifications, and in Source or Object form, provided that You\r
+      meet the following conditions:\r
+\r
+      (a) You must give any other recipients of the Work or\r
+          Derivative Works a copy of this License; and\r
+\r
+      (b) You must cause any modified files to carry prominent notices\r
+          stating that You changed the files; and\r
+\r
+      (c) You must retain, in the Source form of any Derivative Works\r
+          that You distribute, all copyright, patent, trademark, and\r
+          attribution notices from the Source form of the Work,\r
+          excluding those notices that do not pertain to any part of\r
+          the Derivative Works; and\r
+\r
+      (d) If the Work includes a "NOTICE" text file as part of its\r
+          distribution, then any Derivative Works that You distribute must\r
+          include a readable copy of the attribution notices contained\r
+          within such NOTICE file, excluding those notices that do not\r
+          pertain to any part of the Derivative Works, in at least one\r
+          of the following places: within a NOTICE text file distributed\r
+          as part of the Derivative Works; within the Source form or\r
+          documentation, if provided along with the Derivative Works; or,\r
+          within a display generated by the Derivative Works, if and\r
+          wherever such third-party notices normally appear. The contents\r
+          of the NOTICE file are for informational purposes only and\r
+          do not modify the License. You may add Your own attribution\r
+          notices within Derivative Works that You distribute, alongside\r
+          or as an addendum to the NOTICE text from the Work, provided\r
+          that such additional attribution notices cannot be construed\r
+          as modifying the License.\r
+\r
+      You may add Your own copyright statement to Your modifications and\r
+      may provide additional or different license terms and conditions\r
+      for use, reproduction, or distribution of Your modifications, or\r
+      for any such Derivative Works as a whole, provided Your use,\r
+      reproduction, and distribution of the Work otherwise complies with\r
+      the conditions stated in this License.\r
+\r
+   5. Submission of Contributions. Unless You explicitly state otherwise,\r
+      any Contribution intentionally submitted for inclusion in the Work\r
+      by You to the Licensor shall be under the terms and conditions of\r
+      this License, without any additional terms or conditions.\r
+      Notwithstanding the above, nothing herein shall supersede or modify\r
+      the terms of any separate license agreement you may have executed\r
+      with Licensor regarding such Contributions.\r
+\r
+   6. Trademarks. This License does not grant permission to use the trade\r
+      names, trademarks, service marks, or product names of the Licensor,\r
+      except as required for reasonable and customary use in describing the\r
+      origin of the Work and reproducing the content of the NOTICE file.\r
+\r
+   7. Disclaimer of Warranty. Unless required by applicable law or\r
+      agreed to in writing, Licensor provides the Work (and each\r
+      Contributor provides its Contributions) on an "AS IS" BASIS,\r
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\r
+      implied, including, without limitation, any warranties or conditions\r
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\r
+      PARTICULAR PURPOSE. You are solely responsible for determining the\r
+      appropriateness of using or redistributing the Work and assume any\r
+      risks associated with Your exercise of permissions under this License.\r
+\r
+   8. Limitation of Liability. In no event and under no legal theory,\r
+      whether in tort (including negligence), contract, or otherwise,\r
+      unless required by applicable law (such as deliberate and grossly\r
+      negligent acts) or agreed to in writing, shall any Contributor be\r
+      liable to You for damages, including any direct, indirect, special,\r
+      incidental, or consequential damages of any character arising as a\r
+      result of this License or out of the use or inability to use the\r
+      Work (including but not limited to damages for loss of goodwill,\r
+      work stoppage, computer failure or malfunction, or any and all\r
+      other commercial damages or losses), even if such Contributor\r
+      has been advised of the possibility of such damages.\r
+\r
+   9. Accepting Warranty or Additional Liability. While redistributing\r
+      the Work or Derivative Works thereof, You may choose to offer,\r
+      and charge a fee for, acceptance of support, warranty, indemnity,\r
+      or other liability obligations and/or rights consistent with this\r
+      License. However, in accepting such obligations, You may act only\r
+      on Your own behalf and on Your sole responsibility, not on behalf\r
+      of any other Contributor, and only if You agree to indemnify,\r
+      defend, and hold each Contributor harmless for any liability\r
+      incurred by, or claims asserted against, such Contributor by reason\r
+      of your accepting any such warranty or additional liability.\r
+\r
+   END OF TERMS AND CONDITIONS\r
+\r
+   APPENDIX: How to apply the Apache License to your work.\r
+\r
+      To apply the Apache License to your work, attach the following\r
+      boilerplate notice, with the fields enclosed by brackets "[]"\r
+      replaced with your own identifying information. (Don't include\r
+      the brackets!)  The text should be enclosed in the appropriate\r
+      comment syntax for the file format. We also recommend that a\r
+      file or class name and description of purpose be included on the\r
+      same "printed page" as the copyright notice for easier\r
+      identification within third-party archives.\r
+\r
+   Copyright [yyyy] [name of copyright owner]\r
+\r
+   Licensed under the Apache License, Version 2.0 (the "License");\r
+   you may not use this file except in compliance with the License.\r
+   You may obtain a copy of the License at\r
+\r
+       http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+   Unless required by applicable law or agreed to in writing, software\r
+   distributed under the License is distributed on an "AS IS" BASIS,\r
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+   See the License for the specific language governing permissions and\r
+   limitations under the License.\r
+\r
+\r
+\r
diff --git a/NOTICE b/NOTICE
index 4297ee3..f085dc6 100644 (file)
--- a/NOTICE
+++ b/NOTICE
@@ -1 +1 @@
-Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
diff --git a/filesystem/etc/emulator/model-config.sh b/filesystem/etc/emulator/model-config.sh
deleted file mode 100755 (executable)
index 96a29e1..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-
-CMDLINE=/proc/cmdline
-XML=/etc/config/model-config.xml
-
-
-echo -e "[${_G} model config setting ${C_}]"
-
-# display resolution
-if grep --silent "video=" $CMDLINE ; then
-        echo -e "[${_G} modify the resolution value of platform features: ${C_}]"
-
-        VIDEO=`sed s/.*video=// $CMDLINE | cut -d ' ' -f1`
-        FORMAT=`echo $VIDEO | cut -d ':' -f2 | cut -d ',' -f2`
-        RESOLUTION=`echo $FORMAT | cut -d '-' -f1`
-        WIDTH=`echo $RESOLUTION | cut -d 'x' -f1`
-        HEIGHT=`echo $RESOLUTION | cut -d 'x' -f2`
-
-        TR_NUM=`echo $WIDTH$HEIGHT | tr -d '[0-9]'`
-        if [ "$TR_NUM" != "" ] ; then
-            echo "non-integer argument"
-        else
-            WIDTH_KEY="tizen.org\/feature\/screen.width\" type=\"int\""
-            sed -i s/"$WIDTH_KEY".*\</"$WIDTH_KEY"\>"$WIDTH"\</ $XML
-            HEIGHT_KEY="tizen.org\/feature\/screen.height\" type=\"int\""
-            sed -i s/"$HEIGHT_KEY".*\</"$HEIGHT_KEY"\>"$HEIGHT"\</ $XML
-            echo -e "[${_G} width=$WIDTH, height=$HEIGHT ${C_}]"
-
-            # screen size
-            SCREENSIZE_KEY="tizen.org\/feature\/screen.size"
-            SCREENSIZE_KEY_NORMAL=""$SCREENSIZE_KEY".normal"
-            SCREENSIZE_KEY_NORMAL_RESOLUTION=""$SCREENSIZE_KEY_NORMAL"."$WIDTH"."$HEIGHT"\" type=\"bool\""
-
-            sed -i s/"$SCREENSIZE_KEY_NORMAL".[0-9].*"type=\"bool\"".*true/"&!!!"/ $XML
-            sed -i s/true!!!/false/ $XML
-            sed -i s/"$SCREENSIZE_KEY_NORMAL_RESOLUTION".*\</"$SCREENSIZE_KEY_NORMAL_RESOLUTION"\>true\</ $XML
-        fi
-fi
-
-# dot per inch
-if grep --silent "dpi=" $CMDLINE ; then
-        echo -e "[${_G} modify the dpi value of platform features: ${C_}]"
-
-        DPI=`sed s/.*dpi=// $CMDLINE | cut -d ' ' -f1`
-
-        TR_NUM=`echo $DPI | tr -d '[0-9]'`
-        if [ "$TR_NUM" != "" ] ; then
-            echo "non-integer argument"
-        else
-            SCREEN_DPI=`expr "$DPI" "/" 10`
-
-            DPI_KEY="tizen.org\/feature\/screen.dpi\" type=\"int\""
-            sed -i s/"$DPI_KEY".*\</"$DPI_KEY"\>"$SCREEN_DPI"\</ $XML
-            echo -e "[${_G} dpi=$SCREEN_DPI ${C_}]"
-        fi
-fi
-
diff --git a/filesystem/etc/emulator/select-boot-animation.sh b/filesystem/etc/emulator/select-boot-animation.sh
deleted file mode 100755 (executable)
index 289372a..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#/bin/sh -e
-
-CMDLINE=/proc/cmdline
-VIDEO=`sed s/.*video=// $CMDLINE | cut -d ' ' -f1`
-FORMAT=`echo $VIDEO | cut -d ':' -f2 | cut -d ',' -f2`
-RESOLUTION=`echo $FORMAT | cut -d '-' -f1`
-W=`echo $RESOLUTION | awk -Fx '{print $1}'`
-H=`echo $RESOLUTION | awk -Fx '{print $2}'`
-
-if [ -d /usr/share/edje ] && [ -d /usr/share/edje/emul ] &&
-   [ -f /usr/share/edje/emul/1X1_poweron.edj ] && [ -f /usr/share/edje/emul/1X1_poweroff.edj ] &&
-   [ -f /usr/share/edje/emul/3X4_poweron.edj ] && [ -f /usr/share/edje/emul/3X4_poweroff.edj ]
-then
-    rm -f /usr/share/edje/poweron.edj
-    rm -f /usr/share/edje/poweroff.edj
-    if [ $W == $H ]
-    then
-       ln -s emul/1X1_poweron.edj /usr/share/edje/poweron.edj
-       ln -s emul/1X1_poweroff.edj /usr/share/edje/poweroff.edj
-    else
-       ln -s emul/3X4_poweron.edj /usr/share/edje/poweron.edj
-       ln -s emul/3X4_poweroff.edj /usr/share/edje/poweroff.edj
-    fi
-fi
old mode 100644 (file)
new mode 100755 (executable)
index 05970da..3361e45 100755 (executable)
@@ -1,34 +1,27 @@
 #!/bin/sh
-if grep -q "http_proxy=" /proc/cmdline ; then
-        __proxy=`sed 's/^.*http_proxy=\([^, ]*\).*$/\1/g' /proc/cmdline`
-        if [ "x${__proxy}" = "x" ]; then
-            export "http_proxy="
-        else
-            export "http_proxy=http://${__proxy}/"
-        fi
-fi
-if grep -q "https_proxy=" /proc/cmdline ; then
-        __proxy=`sed 's/^.*https_proxy=\([^, ]*\).*$/\1/g' /proc/cmdline`
-        if [ "x${__proxy}" = "x" ]; then
-            export "https_proxy="
-        else
-            export "https_proxy=https://${__proxy}/"
-        fi
-fi
-if grep -q "ftp_proxy=" /proc/cmdline ; then
-        __proxy=`sed 's/^.*ftp_proxy=\([^, ]*\).*$/\1/g' /proc/cmdline`
-        if [ "x${__proxy}" = "x" ]; then
-            export "ftp_proxy="
-        else
-            export "ftp_proxy=ftp://${__proxy}/"
-        fi
-fi
-if grep -q "socks_proxy=" /proc/cmdline ; then
-        __proxy=`sed 's/^.*socks_proxy=\([^, ]*\).*$/\1/g' /proc/cmdline`
-        if [ "x${__proxy}" = "x" ]; then
-            export "socks_proxy="
-        else
-            export "socks_proxy=socks://${__proxy}/"
-        fi
-fi
-export "no_proxy=localhost,127.0.0.1/8,10.0.0.0/16"
+
+function cmd_get
+{
+       cat /proc/cmdline | tr -s [:space:] '\n' | grep -m1 "^$1=" | cut -d= -f2
+}
+
+__proxy=`cmd_get http_proxy`
+[ -n "${__proxy}" ] && export "http_proxy=http://${__proxy}/"
+
+__proxy=`cmd_get https_proxy`
+[ -n "${__proxy}" ] && export "https_proxy=https://${__proxy}/"
+
+__proxy=`cmd_get ftp_proxy`
+[ -n "${__proxy}" ] && export "ftp_proxy=ftp://${__proxy}/"
+
+__proxy=`cmd_get socks_proxy`
+[ -n "${__proxy}" ] && export "socks_proxy=socks://${__proxy}/"
+
+no_proxy="localhost,127.0.0.1/8,10.0.0.0/16"
+
+# Work around for bug in zypper, not handling netmasks in no_proxy.
+# Exlicitly add default gateway ip to no_proxy.
+__gw=`cmd_get ip | cut -d: -f3`
+[ -n "${__gw}" ] && no_proxy="${no_proxy},${__gw}"
+
+export no_proxy
index 324431b..ca75fdc 100755 (executable)
@@ -7,153 +7,6 @@ _Y='\033[0;33;1m'     #Yellow
 C_='\033[0m'           #Color off
 
 echo -e "[${_G}rc.sysinit : script starts${C_}]"
-echo -e "[${_G}mount...${C_}]"
-mount -t proc none /proc  
-mount -t tmpfs tmpfs /tmp
-#for emulator : /var/run only for supporting dpkg command
-mount -t tmpfs tmpfs /var/run
-mount -t sysfs none /sys    
-mount -t tmpfs runfs /run
-mount -t devtmpfs devtmpfs /dev
-mkdir -p /dev/pts
-mkdir -p /dev/shm
-mount -t tmpfs none /dev/shm
-mount -t devpts devpts /dev/pts
-mount -t debugfs none /sys/kernel/debug
-
-echo -e "[${_G}check codec dev node${C_}]"
-test -c /dev/codec || mknod -m 666 /dev/codec c 240 0
-
-echo -e "[${_G}mount filesystems storage${C_}]"
-mount -a
-
-#emulator's swapon
-echo -e "[${_G}mount swap /dev/vdb ${C_}]"
-/sbin/swapon /dev/vdb
-
-
-echo -e "[${_G}udev start${C_}]"
-UDEVD_MAX_CHILDS=1 /sbin/udevd --daemon
-/sbin/udevadm trigger
-
-echo -e "[${_G}create base directory in /opt, /var${C_}]"
-# construct directory hierarchy
-mkdir -p /opt/var/log/apt
-mkdir -p /opt/var/lib
-mkdir -p /opt/var/cache
-mkdir -p /var/run
-
-#make a file for /dev/rtc1
-touch /dev/rtc1
-chmod 777 /dev/rtc1
-
-if [ ! -e /opt/etc/.firstboot ]; then
-       echo -e "[${_Y}rc.firstboot${C_}]"
-       /etc/rc.d/rc.firstboot
-       touch /opt/etc/.firstboot
-fi
-
-echo -e "[${_G}set device node perm & security${C_}]"
-# Set device node permissions for security
-chown 0:6501 /dev/video0
-chown 0:6509 /dev/log_main
-chown 0:6509 /dev/log_events
-chown 0:6509 /dev/log_radio
-chown :audio /dev/snd/
-chmod 775 /dev/snd/
-chown :audio /dev/snd/controlC0
-chown :audio /dev/snd/pcmC0D0p
-chown :audio /dev/snd/pcmC0D1p
-chown :audio /dev/snd/timer
-chown 0:6508 /dev/snd/pcmC0D0c
-chown :video /dev/fb0
-chown :video /dev/video1
-chmod 666 /dev/glmem
-chmod 666 /dev/yagl
-
-if [ -e /opt/etc/.coredump ]; then
-       # enable coredump
-       echo "/opt/usr/share/crash/core/%p_%s_%e.core" > /proc/sys/kernel/core_pattern
-       ulimit -c unlimited
-else
-       echo "core dump disabled"
-       ulimit -c 0
-fi
-
-echo -e "[${_G}run profile${C_}]"
-# Run profile
-. /etc/profile
-
-# Check rw mode
-DEVEL_UPDATE_MODE=`grep devel_update_boot /proc/cmdline`
-if [ -f /opt/etc/.devel_update ] && [ -z "$DEVEL_UPDATE_MODE" ]; then
-       touch /opt/etc/.hib_capturing
-       rm /opt/etc/.devel_update
-fi
-
-#for emulator
-echo -e "[${_G}make symbolic link for i686${C_}]"
-cd /usr/lib/enlightenment/modules/comp-slp/
-ln -s linux-gnu-i686-ver-pre-svn-08 linux-gnu-i486-ver-pre-svn-08
-cd /usr/lib/enlightenment/modules/e17-extra-module-keyrouter/
-ln -s linux-gnu-i686-ver-pre-svn-08 linux-gnu-i486-ver-pre-svn-08
-cd /usr/lib/enlightenment/modules/e17-extra-module-wmready/
-ln -s linux-gnu-i686-ver-pre-svn-08 linux-gnu-i486-ver-pre-svn-08
-cd /usr/lib/enlightenment/modules/illume2-slp/
-ln -s linux-gnu-i686-ver-pre-svn-08 linux-gnu-i486-ver-pre-svn-08
-cd /usr/lib/edje/modules/icon_calendar/
-ln -s linux-gnu-i686-1.0.0 linux-gnu-i486-1.0.0
-
-#for emulator : where is press binary?
-/usr/bin/press 1 # wait input to stop running scripts
-if [ $? -eq 0 ]; then
-       echo "script is stopped"
-       # prepare usbnet before exit
-       insmod /opt/driver/g_ether.ko
-       sleep 1
-       ifconfig usb0 192.168.129.3 netmask 255.255.255.0
-       # Run all rc0 scripts
-       for i in /etc/rc.d/rc0.d/*; do
-               echo -e "[${_G}${i} start${C_}]"
-               $i start
-       done
-elif [ -f /opt/etc/.hib_capturing ] && [ -z "$DEVEL_UPDATE_MODE" ]; then
-       echo -e "[${_Y}run all rc4 scripts${C_}]"
-       # Run all rc4 scripts
-       /usr/bin/write-to-lcd /dev/fb3 "Initializing daemons"
-       echo "there is /opt/etc/.hib_capturing  hibernation capturing mode"
-       for i in /etc/rc.d/rc4.d/*; do
-               echo -e "[${_G}${i} start${C_}]"
-               $i start
-       done
-else
-       # Run all rc3 scripts
-       echo -e "[${_G}run all rc3 scripts${C_}]"
-       echo "normal boot"
-       # modify script for checking boot up progress...
-       NUMBER_OF_RCS=`ls /etc/rc.d/rc3.d/ | wc -l`
-       count=0;
-       for i in /etc/rc.d/rc3.d/*; do
-               echo -e "[${_G}${i} start${C_}]"
-               $i start
-               count=$((count + 1))
-               echo `expr $count \* 100 / $NUMBER_OF_RCS` > /dev/esm
-       done
-fi
-
-
-# symbolic link
-if [ ! -e /opt/apps ]; then
-       echo -e "[${_G}link /opt/apps -> /opt/media/apps${C_}]"
-       ln -s /opt/media/apps /opt/apps
-fi
-
-# inhouse home-directory
-chown 5000:5000 /home/inhouse
-
-if [ "$DEVEL_UPDATE_MODE" ]; then
-       touch /opt/etc/.devel_update
-fi
 
 #for emulator : 
 /etc/rc.d/rc.emul
diff --git a/filesystem/etc/systemd/default-extra-dependencies/ignore-units b/filesystem/etc/systemd/default-extra-dependencies/ignore-units
deleted file mode 100644 (file)
index df8bd62..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-ac.service
-alarm-server.service
-boot-osp.service
-check-mount.service
-crash-daemon.service
-csc-starter.service
-dbus.service
-factory-pretest.service
-factory-reset.service
-immvibed.service
-indicator.service
-irsc_util.service
-launchpad-preload.service
-messagebus.service
-ode-server.service
-opt-usr-fsck.service
-osp-tmpdir-setup.service
-pkgmgr_recovery.service
-power_qcom_init.service
-pulseaudio.service
-qmuxd.service
-qseecom_ready.service
-recovery-update.service
-reset-verify.service
-rmt_storage.service
-samsung-secure-storage.service
-secure-storage.service
-security-server.service
-slp-pkgmgr.service
-smack-rules.service
-sound-server.service
-starter.service
-system-server.service
-tee-qsee.service
-telephony-daemon.service
-time.service
-trm.service
-wifi-module-check.service
-wm_ready.service
-wrt-security-daemon.service
index 641bdb1..dd5e101 100644 (file)
@@ -7,10 +7,10 @@ Before=basic.target
 [Service]
 Type=oneshot
 
-# platform features
-ExecStartPre=/bin/sh -c '/etc/emulator/model-config.sh'
-# for boot-animation
-ExecStartPre=/bin/sh -c '/etc/emulator/select-boot-animation.sh'
+# execute prerun scripts.
+# it is not necessary because it is already executed from initramfs.
+# but we execute it again for sure.
+ExecStartPre=/bin/sh -c '. /etc/emulator/prerun'
 # W/A for alarm-service
 ExecStart=/bin/touch /dev/rtc1
 
index 351d420..f930330 100644 (file)
@@ -4,10 +4,7 @@ DefaultDependencies=no
 
 [Service]
 Type=oneshot
-ExecStart=/opt/usr/devel/usr/bin/amixer "cset" "name='Master Playback Switch'" "1"
-ExecStart=/opt/usr/devel/usr/bin/amixer "cset" "name='Master Playback Volume'" "50"
-ExecStart=/opt/usr/devel/usr/bin/amixer "cset" "name='PCM Playback Switch'" "1"
-ExecStart=/opt/usr/devel/usr/bin/amixer "cset" "name='PCM Playback Volume'" "31"
+ExecStart=/etc/emulator/setup-audio-volume.sh
 
 [Install]
 WantedBy=emulator_preinit.target
diff --git a/filesystem/usr/lib/systemd/system/tizen-boot.target b/filesystem/usr/lib/systemd/system/tizen-boot.target
deleted file mode 100644 (file)
index 1533be5..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-[Unit]
-Description=Tizen Boot
-Requires=basic.target
-Conflicts=rescue.service rescue.target
-After=basic.target rescue.service rescue.target
-Before=multi-user.target
diff --git a/filesystem/usr/lib/systemd/system/tizen-generate-env.service b/filesystem/usr/lib/systemd/system/tizen-generate-env.service
deleted file mode 100644 (file)
index 7e860a5..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-[Unit]
-Description=Generate environment from /etc/profile.d
-DefaultDependencies=no
-After=opt.mount
-Before=basic.target
-
-[Service]
-Type=oneshot
-ExecStart=/usr/bin/env -i sh -c 'source /etc/profile; env | egrep -v "^(HOME|PWD|SHLVL|_)=" > /run/tizen-mobile-env'
-
-[Install]
-WantedBy=basic.target
diff --git a/filesystem/usr/lib/systemd/system/tizen-readahead-collect.service b/filesystem/usr/lib/systemd/system/tizen-readahead-collect.service
deleted file mode 100644 (file)
index dc37903..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-[Unit]
-Description=Collect Read-Ahead Data
-DefaultDependencies=no
-Conflicts=shutdown.target
-After=smack.service smack_pre_labeling_priv.service
-Before=sysinit.target shutdown.target
-ConditionPathExists=/opt/etc/.vconf_labeling
-ConditionPathExists=!/opt/.readahead
-
-[Service]
-Type=notify
-ExecStart=/usr/lib/systemd/systemd-readahead collect --timeout=6s --savedir=/opt
-RemainAfterExit=yes
-StandardOutput=null
-
-[Install]
-WantedBy=default.target
diff --git a/filesystem/usr/lib/systemd/system/tizen-readahead-replay.service b/filesystem/usr/lib/systemd/system/tizen-readahead-replay.service
deleted file mode 100644 (file)
index 4ec17be..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-[Unit]
-Description=Replay Read-Ahead Data
-DefaultDependencies=no
-Conflicts=shutdown.target
-After=smack.service smack_pre_labeling_priv.service
-Before=sysinit.target shutdown.target
-ConditionPathExists=/opt/.readahead
-
-[Service]
-Type=notify
-ExecStart=/usr/lib/systemd/systemd-readahead replay --savedir=/opt
-RemainAfterExit=yes
-StandardOutput=null
-
-[Install]
-WantedBy=default.target
diff --git a/filesystem/usr/lib/systemd/system/tizen-runtime.target b/filesystem/usr/lib/systemd/system/tizen-runtime.target
deleted file mode 100644 (file)
index b1bc216..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-[Unit]
-Description=Tizen Runtime
-Requires=basic.target tizen-boot.target tizen-system.target
-Conflicts=rescue.service rescue.target
-After=basic.target tizen-boot.target tizen-system.target rescue.service rescue.target
-Before=multi-user.target
diff --git a/filesystem/usr/lib/systemd/system/tizen-system.target b/filesystem/usr/lib/systemd/system/tizen-system.target
deleted file mode 100644 (file)
index 4240819..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-[Unit]
-Description=Tizen System
-Requires=basic.target tizen-boot.target
-Conflicts=rescue.service rescue.target
-After=basic.target tizen-boot.target rescue.service rescue.target
-Before=multi-user.target
diff --git a/filesystem/usr/lib/systemd/system/wm_ready.service b/filesystem/usr/lib/systemd/system/wm_ready.service
deleted file mode 100644 (file)
index 00d287f..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-[Unit]
-Description=waiting for window mananger
-After=xorg.service
-Before=tizen-boot.target
-
-[Service]
-Type=oneshot
-ExecStart=/bin/sh -c 'while [ ! -e /tmp/.wm_ready ]; do sleep 0.1 ; done'
-TimeoutSec=30s
-
-[Install]
-WantedBy=tizen-boot.target
diff --git a/filesystem/usr/lib/udev/rules.d/51-tizen-udev-default.rules b/filesystem/usr/lib/udev/rules.d/51-tizen-udev-default.rules
deleted file mode 100644 (file)
index ed45cb6..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-# Tizen specific additional rules
-
-SUBSYSTEM=="tty", KERNEL=="ptmx", SECLABEL{smack}="*"
-SUBSYSTEM=="tty", KERNEL=="tty", SECLABEL{smack}="*"
-SUBSYSTEM=="tty", KERNEL=="tty[0-9]*", SECLABEL{smack}="*"
-SUBSYSTEM=="vc", KERNEL=="vcs*|vcsa*", SECLABEL{smack}="*"
-KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", SECLABEL{smack}="*"
-
-# input
-SUBSYSTEM=="input", KERNEL=="mouse*|mice|event*", GROUP="input", MODE="0660"
-
-# video
-KERNEL=="mali", GROUP="video", SECLABEL{smack}="*"
-KERNEL=="slp_global_lock", GROUP="video", SECLABEL{smack}="*"
-SUBSYSTEM=="video4linux", SECLABEL{smack}="*"
-SUBSYSTEM=="drm", SECLABEL{smack}="*"
-
-SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", SECLABEL{smack}="*"
-
-KERNEL=="fuse", SECLABEL{smack}="*"
-
-LABEL="tizen_default_permissions_end"
index c95f6e7..416c21d 100644 (file)
@@ -2,15 +2,13 @@ KERNEL=="glmem",        MODE="0666", SECLABEL{smack}="*"
 KERNEL=="yagl",         MODE="0666", SECLABEL{smack}="*"
 KERNEL=="esm",          MODE="0666", SECLABEL{smack}="*"
 
-KERNEL=="brillcodec",   GROUP="hwcodec", MODE="0666", SECLABEL{smack}="*"
+KERNEL=="codec",        GROUP="hwcodec", MODE="0666", SECLABEL{smack}="device::hwcodec"
+KERNEL=="brillcodec",   GROUP="hwcodec", MODE="0666", SECLABEL{smack}="device::hwcodec"
 
 KERNEL=="video0",       GROUP="camera", MODE="0660", SECLABEL{smack}="device::camera"
 KERNEL=="video1",       GROUP="video", MODE="0660", SECLABEL{smack}="device::video"
 KERNEL=="video2",       GROUP="video", MODE="0660", SECLABEL{smack}="device::video"
 
-KERNEL=="vdpram*",      GROUP="system", MODE="0660", SECLABEL{smack}="*"
+KERNEL=="vdpram*",      MODE="0644"
 
-# Moved from /etc/rc.d/rc3.d/S30brightness
-SUBSYSTEM=="lcd", ATTR{lcd_power}=="?*", RUN+="/bin/chown :system_bklight 0664 %S/%p/lcd_power"
-
-SUBSYSTEM=="drm", SECLABEL{smack}="*"
+SUBSYSTEM=="input", ATTR{name}=="ImExPS/2 Generic Explorer Mouse", ENV{ID_SEAT}="seat1"
index 6dfba30..5a2fdb6 100644 (file)
@@ -1,8 +1,8 @@
-* Tue Nov 26 11:41:26 KST 2013 Sooyoung Ha <yoosah.ha@samsung.com>
-- modify fstab on spec file.
+* Thu Jun 05 11:15:24 CEST 2014 Rafal Krypa <r.krypa@samsung.com>
+- remove sdbd.service since sdbd package has included the service file.
 
-* Mon Nov 25 17:08:11 UTC 2013 Sooyoung Ha <yoosah.ha@samsung.com>
-- add some service files from system-plugin-exynos git repository.
+* Thu Apr 17 18:03:11 KST 2014 Sooyoung Ha <yoosah.ha@samsung.com>
+- remove rc.sysinit script and modify udev rule.
 
 * Fri Nov  1 06:19:37 UTC 2013 GiWoong Kim <giwoong.kim@samsung.com>
 - modified model-config.sh
index c60a513..ab2dd0d 100644 (file)
@@ -1,5 +1,5 @@
 Name: system-plugin-emulator
-Version: 0.1.7
+Version: 0.0.16
 Release: 1
 
 %define systemd_dir     /usr/lib/systemd
@@ -9,11 +9,11 @@ License: Apache-2.0
 Group: System/Configuration
 Requires: udev
 Requires: util-linux
+Requires: sysvinit
 Requires(post): setup
 Requires(post): coreutils
 Source0: %{name}-%{version}.tar.gz
 Source1001: packaging/%{name}.manifest
-ExclusiveArch: %{ix86}
 
 %description
 System plugin files for emulator
@@ -28,47 +28,40 @@ System plugin files for emulator
 find . -name .gitignore -exec rm -f {} \;
 cp -arf filesystem/* %{buildroot}
 
+# for legacy init
+if [ ! -d %{buildroot}/etc/rc.d/rc3.d ]; then
+    mkdir -p %{buildroot}/etc/rc.d/rc3.d
+fi
+ln -s /etc/init.d/setup-audio-volume %{buildroot}//etc/rc.d/rc3.d/S02setup-audio-volume
+ln -s /etc/init.d/mount-hostdir %{buildroot}//etc/rc.d/rc3.d/S03mount-hostdir
+
 # for systemd
 # for emulator_preinit.target
 mkdir -p %{buildroot}/%{systemd_dir}/system/basic.target.wants
 ln -s %{systemd_dir}/system/emulator_preinit.target %{buildroot}/%{systemd_dir}/system/basic.target.wants/
 mkdir -p %{buildroot}/%{systemd_dir}/system/emulator_preinit.target.wants
 ln -s %{systemd_dir}/system/emul-setup-audio-volume.service %{buildroot}/%{systemd_dir}/system/emulator_preinit.target.wants/
+ln -s %{systemd_dir}/system/emul-mount-hostdir.service %{buildroot}/%{systemd_dir}/system/emulator_preinit.target.wants/
 ln -s %{systemd_dir}/system/emul-common-preinit.service %{buildroot}/%{systemd_dir}/system/emulator_preinit.target.wants/
+ln -s %{systemd_dir}/system/dev-vdb.swap %{buildroot}/%{systemd_dir}/system/emulator_preinit.target.wants/
 # for emulator.target
 mkdir -p %{buildroot}/%{systemd_dir}/system/multi-user.target.wants
 ln -s %{systemd_dir}/system/emulator.target %{buildroot}/%{systemd_dir}/system/multi-user.target.wants/
-ln -s %{systemd_dir}/system/tizen-boot.target %{buildroot}/%{systemd_dir}/system/multi-user.target.wants/
-ln -s %{systemd_dir}/system/tizen-system.target %{buildroot}/%{systemd_dir}/system/multi-user.target.wants/
-ln -s %{systemd_dir}/system/tizen-runtime.target %{buildroot}/%{systemd_dir}/system/multi-user.target.wants/
 mkdir -p %{buildroot}/%{systemd_dir}/system/emulator.target.wants
-# services from system-plugin-exynos
-ln -s ../tizen-generate-env.service %{buildroot}/%{systemd_dir}/system/basic.target.wants/
-mkdir -p %{buildroot}/%{systemd_dir}/system/default.target.wants
-ln -s ../tizen-readahead-collect.service %{buildroot}/%{systemd_dir}/system/default.target.wants/
-ln -s ../tizen-readahead-replay.service %{buildroot}/%{systemd_dir}/system/default.target.wants/
-mkdir -p %{buildroot}/%{systemd_dir}/system/tizen-boot.target.wants
-ln -s ../wm_ready.service %{buildroot}/%{systemd_dir}/system/tizen-boot.target.wants/
-mkdir -p %{buildroot}/%{systemd_dir}/system/tizen-system.target.wants
+
+# for host file sharing
+mkdir -p %{buildroot}/mnt/host
 
 # include license
 mkdir -p %{buildroot}/usr/share/license
 cp LICENSE %{buildroot}/usr/share/license/%{name}
 
-%post
-#make fstab
-if [ -e /etc/fstab ]; then
-       echo "tmpfs      /tmp      tmpfs   comment=havefs-smackfs-smackfsroot=* 0 0" >> /etc/fstab
-       echo "/dev/vdb   swap      swap    defaults         0 0" >> /etc/fstab
-fi
-
-%posttrans
-#run emulator_ns.preinit script after all packages have been installed.
-/etc/preconf.d/emulator_ns.preinit
-
 %files
+/etc/emulator/setup-audio-volume.sh
+/etc/emulator/mount-hostdir.sh
 /etc/emulator/model-config.sh
-/etc/emulator/select-boot-animation.sh
+/etc/init.d/setup-audio-volume
+/etc/init.d/mount-hostdir
 /etc/inittab
 /etc/preconf.d/emulator_ns.preinit
 /etc/preconf.d/systemd_conf.preinit
@@ -77,29 +70,20 @@ fi
 /etc/rc.d/rc.firstboot
 /etc/rc.d/rc.shutdown
 /etc/rc.d/rc.sysinit
-/etc/systemd/default-extra-dependencies/ignore-units
+/etc/rc.d/rc3.d/S02setup-audio-volume
+/etc/rc.d/rc3.d/S03mount-hostdir
 /usr/lib/systemd/system/emulator_preinit.target
 /usr/lib/systemd/system/emulator.target
 /usr/lib/systemd/system/basic.target.wants/emulator_preinit.target
-/usr/lib/systemd/system/basic.target.wants/tizen-generate-env.service
-/usr/lib/systemd/system/default.target.wants/tizen-readahead-collect.service
-/usr/lib/systemd/system/default.target.wants/tizen-readahead-replay.service
 /usr/lib/systemd/system/multi-user.target.wants/emulator.target
-/usr/lib/systemd/system/multi-user.target.wants/tizen-boot.target
-/usr/lib/systemd/system/multi-user.target.wants/tizen-system.target
-/usr/lib/systemd/system/multi-user.target.wants/tizen-runtime.target
 /usr/lib/systemd/system/emul-setup-audio-volume.service
+/usr/lib/systemd/system/emul-mount-hostdir.service
 /usr/lib/systemd/system/emul-common-preinit.service
+/usr/lib/systemd/system/dev-vdb.swap
 /usr/lib/systemd/system/emulator_preinit.target.wants/emul-setup-audio-volume.service
+/usr/lib/systemd/system/emulator_preinit.target.wants/emul-mount-hostdir.service
 /usr/lib/systemd/system/emulator_preinit.target.wants/emul-common-preinit.service
-/usr/lib/systemd/system/tizen-boot.target
-/usr/lib/systemd/system/tizen-system.target
-/usr/lib/systemd/system/tizen-runtime.target
-/usr/lib/systemd/system/tizen-boot.target.wants/wm_ready.service
-/usr/lib/systemd/system/tizen-readahead-collect.service
-/usr/lib/systemd/system/tizen-readahead-replay.service
-/usr/lib/systemd/system/wm_ready.service
-/usr/lib/systemd/system/tizen-generate-env.service
-/usr/lib/udev/rules.d/51-tizen-udev-default.rules
+/usr/lib/systemd/system/emulator_preinit.target.wants/dev-vdb.swap
 /usr/lib/udev/rules.d/95-tizen-emulator.rules
+%dir /mnt/host
 /usr/share/license/%{name}