summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinkun Jang <jinkun.jang@samsung.com>2013-03-16 01:02:59 +0900
committerJinkun Jang <jinkun.jang@samsung.com>2013-03-16 01:02:59 +0900
commit13bea142ffce4b9e3be996884f237f9f93272e2b (patch)
tree35c5dc9bfcad7323ed762e59fb4e8edabdb4cc7d
parent910085b002957922f76374d10c46075688085d0d (diff)
downloadsystem-plugin-slp-13bea142ffce4b9e3be996884f237f9f93272e2b.tar.gz
system-plugin-slp-13bea142ffce4b9e3be996884f237f9f93272e2b.tar.bz2
system-plugin-slp-13bea142ffce4b9e3be996884f237f9f93272e2b.zip
-rwxr-xr-xetc/rc.d/rc.sysinit18
-rwxr-xr-xpackaging/system-plugin-slp.spec2
2 files changed, 11 insertions, 9 deletions
diff --git a/etc/rc.d/rc.sysinit b/etc/rc.d/rc.sysinit
index d49044d..ee2c286 100755
--- a/etc/rc.d/rc.sysinit
+++ b/etc/rc.d/rc.sysinit
@@ -138,19 +138,21 @@ ln -s /boot/modem.bin /modem/modem.bin
#touch sensor start
echo 1 > /sys/class/i2c-adapter/i2c-2/2-004a/touchstart
-if [ -e /opt/etc/.coredump ]; then
+echo -e "[${_G}run profile${C_}]"
+# Run profile
+. /etc/profile
+
+if [ -e /opt/etc/.debugmode ]; then
+ echo "debug mode enabled"
+ # for bluescreen
+ export LD_PRELOAD=/usr/lib/libsys-assert.so
# enable coredump
- echo "/opt/usr/share/crash/core/%p_%s_%e.core" > /proc/sys/kernel/core_pattern
+ echo "/opt/bs/core/core.%p" > /proc/sys/kernel/core_pattern
ulimit -c unlimited
else
- echo "core dump disabled"
- ulimit -c 0
+ echo "debug mode disabled"
fi
-echo -e "[${_G}run profile${C_}]"
-# Run profile
-. /etc/profile
-
/usr/bin/press 1 # wait input to stop running scripts
if [ $? -eq 0 ]; then
echo "script is stopped"
diff --git a/packaging/system-plugin-slp.spec b/packaging/system-plugin-slp.spec
index 23ab501..e8cebb2 100755
--- a/packaging/system-plugin-slp.spec
+++ b/packaging/system-plugin-slp.spec
@@ -3,7 +3,7 @@ Summary: system-plugin for Clean SDK
Version: 0.0.1
License: Apache-2.0
Group: System/Base
-Release: 64
+Release: 62
ExclusiveArch: %arm
Source: %{name}-%{version}.tar.gz
BuildRequires: cmake