diff options
Diffstat (limited to 'etc/rc.d/rc.sysinit')
-rwxr-xr-x | etc/rc.d/rc.sysinit | 18 |
1 files changed, 10 insertions, 8 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" |