add remove.sh options to del or to print 60/149160/3 submit/tizen/20170912.123705
authorMyoungJune Park <mj2004.park@samsung.com>
Tue, 12 Sep 2017 00:40:55 +0000 (09:40 +0900)
committerMyoungJune Park <mj2004.park@samsung.com>
Tue, 12 Sep 2017 01:17:43 +0000 (10:17 +0900)
- DUPLICATED : db/private/email-service/noti_vip_vibration_status

Change-Id: If61e7a815a0af38357b440fb314316b3644e2cf9
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
data/vconf-internal-uncategorized-keys.xml
packaging/vconf-internal-keys.spec
remove_keys.sh

index 41b9c12..b0881f1 100644 (file)
@@ -22,6 +22,7 @@
     <email/>
     <comment><![CDATA[ ]]></comment>
   </vconfkey>
+       <!-- DUPLICATED
   <vconfkey type="bool" name="db/private/email-service/noti_vip_vibration_status" readPriv="http://tizen.org/privilege/internal/default/platform" writePriv="http://tizen.org/privilege/internal/default/platform">
     <header>VCONFKEY_UNCATEGORIZED_45</header>
     <val>0</val>
@@ -29,6 +30,7 @@
     <email/>
     <comment><![CDATA[ ]]></comment>
   </vconfkey>
+       -->
   <vconfkey type="int32" name="db/private/email-service/slot_size" readPriv="http://tizen.org/privilege/internal/default/platform" writePriv="http://tizen.org/privilege/internal/default/platform">
     <header>VCONFKEY_UNCATEGORIZED_46</header>
     <val>100</val>
index 6391d2f..87b3b87 100755 (executable)
@@ -259,31 +259,36 @@ rm -rf /opt/usr/vconf-internal-keys_scripts_ivi
 %posttrans config-profile_mobile
 TMP_AFTER=/opt/.runtime_vconf_internal_keys
 echo "running -------------------- DISABLE remove_keys.sh"
-#. /opt/usr/remove_keys.sh
+. /opt/usr/remove_keys.sh msg          # just print out messages
+#. /opt/usr/remove_keys.sh del         # remove the actual keys
 touch $TMP_AFTER
 
 %posttrans config-profile_common
 TMP_AFTER=/opt/.runtime_vconf_internal_keys
 echo "running -------------------- DISABLE remove_keys.sh"
-#. /opt/usr/remove_keys.sh
+. /opt/usr/remove_keys.sh msg          # just print out messages
+#. /opt/usr/remove_keys.sh del         # remove the actual keys
 touch $TMP_AFTER
 
 %posttrans config-profile_tv
 TMP_AFTER=/opt/.runtime_vconf_internal_keys
 echo "running -------------------- DISABLE remove_keys.sh"
-#. /opt/usr/remove_keys.sh
+. /opt/usr/remove_keys.sh msg          # just print out messages
+#. /opt/usr/remove_keys.sh del         # remove the actual keys
 touch $TMP_AFTER
 
 %posttrans config-profile_wearable
 TMP_AFTER=/opt/.runtime_vconf_internal_keys
 echo "running -------------------- DISABLE remove_keys.sh"
-#. /opt/usr/remove_keys.sh
+. /opt/usr/remove_keys.sh msg          # just print out messages
+#. /opt/usr/remove_keys.sh del         # remove the actual keys
 touch $TMP_AFTER
 
 %posttrans config-profile_ivi
 TMP_AFTER=/opt/.runtime_vconf_internal_keys
 echo "running -------------------- DISABLE remove_keys.sh"
-#. /opt/usr/remove_keys.sh
+. /opt/usr/remove_keys.sh msg          # just print out messages
+#. /opt/usr/remove_keys.sh del         # remove the actual keys
 touch $TMP_AFTER
 
 %files
index 68f803a..457d667 100755 (executable)
@@ -1,17 +1,40 @@
 #!/bin/bash
+
+CMD=$1
+
+if [ -z $CMD ]; then
+       echo "argument error : 1st arg is cmd (msg/del) "
+       echo "usage-1) ./remove-keys.sh msg"
+       echo "usage-2) ./remove-keys.sh del"
+       echo "usage-3) ./remove-keys.sh --> Error case"
+       exit 1
+fi
+
 buxton2ctl -d list-keys memory | sort > /opt/usr/bk_memory.txt
 buxton2ctl -d list-keys system | sort > /opt/usr/bk_system.txt
 
+MSG="[WARNING] CALLING VCONFTOOL OUTSIDE OF VCONF-INTERNAL-KEYS IS NOT ALLOWED."
 list1=`comm -13 /opt/usr/vk_memory.txt /opt/usr/bk_memory.txt`
+
+
+
 for file in $list1
 do
+if [ $CMD == "msg" ]; then
+       echo $MSG
+elif [ $CMD == "del" ]; then
        buxton2ctl -d -i unset memory $file
+fi
 done
 
 list2=`comm -13 /opt/usr/vk_system.txt /opt/usr/bk_system.txt`
 for file in $list2
 do
+if [ $CMD == "msg" ]; then
+       echo $MSG
+elif [ $CMD == "del" ]; then
        buxton2ctl -d -i unset system $file
+fi
 done
 
 buxton2ctl remove-garbage-data system