Add Native platform information log on/off option
[framework/system/dlog.git] / dlogctrl
index 3eea301..13c5b15 100755 (executable)
--- a/dlogctrl
+++ b/dlogctrl
@@ -42,8 +42,10 @@ fi
 if [ "$MODE" = "set" ]; then
        if [ "$OBJ" = "platformlog" ] && [ "$VAL" = "1" ] ; then
                echo 1 > /opt/etc/platformlog.conf 2>/dev/null
+               touch /home/developer/.platforminfologgingmode 2>/dev/null
        elif [ "$OBJ" = "platformlog" ] && [ "$VAL" = "0" ] ; then
                echo 0 > /opt/etc/platformlog.conf 2>/dev/null
+               rm /home/developer/.platforminfologgingmode 2>/dev/null
        fi
     echo "You must reboot this target to apply the change!"
 else