summaryrefslogtreecommitdiff
path: root/reset_mediadb.sh
blob: 1061599e0063f8f299b5c4ab8fc9e822778be330 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

if [ $# -ne 1 ]
then
	echo 'Usage : reset_mediadb.sh [phone|sd|all]'
	exit
fi

if [ $1 = "phone" ]
then
	vconftool set -f -t int db/filemanager/dbupdate "0"
	killall media-server
fi

if [ $1 = "sd" ]
then
	vconftool set -f -t string db/private/mediaserver/mmc_info ""
	killall media-server
fi

if [ $1 = "all" ]
then
	vconftool set -f -t int db/filemanager/dbupdate "0"
	vconftool set -f -t string db/private/mediaserver/mmc_info ""
	killall media-server
fi