projects
/
framework
/
system
/
dlog.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'tizen_2.1_smack' into tizen_2.1
[framework/system/dlog.git]
/
tizen_platform_env.sh
diff --git
a/tizen_platform_env.sh
b/tizen_platform_env.sh
index
b8df7c1
..
9bf35f1
100755
(executable)
--- a/
tizen_platform_env.sh
+++ b/
tizen_platform_env.sh
@@
-1,11
+1,13
@@
#!/bin/sh
#!/bin/sh
-if [ -e "/opt/etc/dlog/.platformlogging
on
" ]; then
+if [ -e "/opt/etc/dlog/.platformlogging
mode
" ]; then
export TIZEN_PLATFORMLOGGING_MODE=1
fi
export TIZEN_PLATFORMLOGGING_MODE=1
fi
-if [ "$TIZEN_PLATFORMLOGGING_MODE" -eq "1"]; then
- dlevel=$(cat /opt/etc/.dloglevel)
+# 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/dlog/.dloglevel)
if [ "$dlevel" -eq "0" ]; then
export TIZEN_DLOG_LEVEL=0
elif [ "$dlevel" -eq "1" ]; then
if [ "$dlevel" -eq "0" ]; then
export TIZEN_DLOG_LEVEL=0
elif [ "$dlevel" -eq "1" ]; then