projects
/
framework
/
system
/
dlog.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modified for systemd journal support
[framework/system/dlog.git]
/
tizen_platform_env.sh
diff --git
a/tizen_platform_env.sh
b/tizen_platform_env.sh
index
1efb6e1
..
f8f0fe0
100755
(executable)
--- a/
tizen_platform_env.sh
+++ b/
tizen_platform_env.sh
@@
-1,10
+1,12
@@
#!/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
+# 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
dlevel=$(cat /opt/etc/.dloglevel)
if [ "$dlevel" -eq "0" ]; then
export TIZEN_DLOG_LEVEL=0