2 PATH="/usr/bin:/bin:/usr/sbin:/sbin"
7 echo "argument error : 1st arg is cmd (msg/del) "
8 echo "usage-1) ./remove-keys.sh msg"
9 echo "usage-2) ./remove-keys.sh del"
10 echo "usage-3) ./remove-keys.sh --> Error case"
14 buxton2ctl -d list-keys memory | sort > /opt/usr/bk_memory.txt
15 buxton2ctl -d list-keys system | sort > /opt/usr/bk_system.txt
17 MSG="[WARNING] CALLING VCONFTOOL OUTSIDE OF VCONF-INTERNAL-KEYS IS NOT ALLOWED."
18 list1=`comm -13 /opt/usr/vk_memory.txt /opt/usr/bk_memory.txt`
24 if [ $CMD == "msg" ]; then
26 elif [ $CMD == "del" ]; then
27 buxton2ctl -d -i unset memory $file
31 list2=`comm -13 /opt/usr/vk_system.txt /opt/usr/bk_system.txt`
34 if [ $CMD == "msg" ]; then
36 elif [ $CMD == "del" ]; then
37 buxton2ctl -d -i unset system $file
41 buxton2ctl remove-garbage-data system