X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tizen_platform_env.sh;h=f8f0fe0a7953aa35b70e68c4731081397516a53e;hb=310597132825b77a3114ec60a39bff39364c4ab6;hp=b8df7c110ed1f7601fd63b2cd39621592ea742fa;hpb=e701e9e2f125242fc9af9e7fae12c9118e920a6a;p=framework%2Fsystem%2Fdlog.git diff --git a/tizen_platform_env.sh b/tizen_platform_env.sh index b8df7c1..f8f0fe0 100755 --- a/tizen_platform_env.sh +++ b/tizen_platform_env.sh @@ -1,10 +1,12 @@ #!/bin/sh -if [ -e "/opt/etc/dlog/.platformloggingon" ]; then +if [ -e "/opt/etc/dlog/.platformloggingmode" ]; then export TIZEN_PLATFORMLOGGING_MODE=1 fi -if [ "$TIZEN_PLATFORMLOGGING_MODE" -eq "1"]; then +# I'm not clear why "-a" doesn't work here +if [ "x$TIZEN_PLATFORMLOGGING_MODE" != "x" ] && + [ "$TIZEN_PLATFORMLOGGING_MODE" -eq "1" ]; then dlevel=$(cat /opt/etc/.dloglevel) if [ "$dlevel" -eq "0" ]; then export TIZEN_DLOG_LEVEL=0