Change-Id: I660e550e1cf79192297fcdaf1594699e98080db6
elif [ "$OBJ" = "platformlog" ] && [ "$VAL" = "0" ] ; then
rm -f /opt/etc/dlog/.platformloggingmode 2>/dev/null
fi
+ echo "You must reboot this target to apply the change!"
else
if [ "$OBJ" = "platformlog" ]; then
if [ -e "/opt/etc/dlog/.platformloggingmode" ]; then
echo 0
fi
fi
- echo "You must reboot this target to apply the change!"
fi
exit 0
[Service]
Type=oneshot
-ExecStart=/bin/sh -c '/usr/bin/systemctl set-environment TIZEN_PLATFORMLOGGING_MODE=1 TIZEN_DLOG_LEVEL=$(cat /opt/etc/dlog/.dloglevel)'
+ExecStart=/bin/sh -c '/usr/bin/systemctl set-environment TIZEN_PLATFORMLOGGING_MODE=$(find /opt/etc/dlog/.platformloggingmode -type f 2>&1 | wc -l) TIZEN_DLOG_LEVEL=$(cat /opt/etc/dlog/.dloglevel)'
[Install]
WantedBy=basic.target