add smack rule
[framework/system/dlog.git] / dlogctrl
index 840bd45..70751e7 100755 (executable)
--- a/dlogctrl
+++ b/dlogctrl
@@ -2,7 +2,7 @@
 MODE=none
 OBJ=none
 VAL=none
-#echo "tizen_platform_logging_ctrl"
+#echo "tizen_platform_dlog_logging_ctrl"
 case "$1" in
 get)
        MODE=get
@@ -12,7 +12,7 @@ set)
 ;;
 
 *)
-echo "Usage: tplctrl {get|set} {platformlog} {1|0}"
+echo "Usage: dlogctrl {get|set} {platformlog} {1|0}"
 exit 1
 esac
 
@@ -21,7 +21,7 @@ platformlog)
        OBJ=platformlog
 ;;
 *)
-       echo "Usage: tplctrl {get|set} {platformlog} {1|0}"
+       echo "Usage: dlogctrl {get|set} {platformlog} {1|0}"
 exit 1
 esac
 
@@ -34,7 +34,7 @@ if [ "$MODE" = "set" ]; then
                VAL=0
        ;;
        *)
-               echo "Usage: tplctrl {get|set} {platformlog} {1|0}"
+               echo "Usage: dlogctrl {get|set} {platformlog} {1|0}"
        exit 1
        esac
 fi
@@ -45,6 +45,7 @@ if [ "$MODE" = "set" ]; then
        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
@@ -53,7 +54,6 @@ else
                        echo 0
                fi
        fi
-
 fi
 
 exit 0