Add VCONF_SETAPPL_WAKEUP_BY_BEZEL_ENABLE for wearable target
[platform/core/appfw/vconf-internal-keys.git] / remove_keys.sh
1 #!/bin/bash
2
3 CMD=$1
4
5 if [ -z $CMD ]; then
6         echo "argument error : 1st arg is cmd (msg/del) "
7         echo "usage-1) ./remove-keys.sh msg"
8         echo "usage-2) ./remove-keys.sh del"
9         echo "usage-3) ./remove-keys.sh --> Error case"
10         exit 1
11 fi
12
13 buxton2ctl -d list-keys memory | sort > /opt/usr/bk_memory.txt
14 buxton2ctl -d list-keys system | sort > /opt/usr/bk_system.txt
15
16 MSG="[WARNING] CALLING VCONFTOOL OUTSIDE OF VCONF-INTERNAL-KEYS IS NOT ALLOWED."
17 list1=`comm -13 /opt/usr/vk_memory.txt /opt/usr/bk_memory.txt`
18
19
20
21 for file in $list1
22 do
23 if [ $CMD == "msg" ]; then
24         echo "$MSG ($file)"
25 elif [ $CMD == "del" ]; then
26         buxton2ctl -d -i unset memory $file
27 fi
28 done
29
30 list2=`comm -13 /opt/usr/vk_system.txt /opt/usr/bk_system.txt`
31 for file in $list2
32 do
33 if [ $CMD == "msg" ]; then
34         echo "$MSG ($file)"
35 elif [ $CMD == "del" ]; then
36         buxton2ctl -d -i unset system $file
37 fi
38 done
39
40 buxton2ctl remove-garbage-data system