summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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