Remove unused vconf value
[platform/core/connectivity/bluetooth-share.git] / debian / bluetooth-share.postinst
1 #!/bin/sh
2
3 if [ ! -f /opt/dbspace/.bluetooth_trasnfer.db ]
4 then
5        sqlite3 /opt/dbspace/.bluetooth_trasnfer.db 'PRAGMA journal_mode = PERSIST;
6         create table if not exists inbound (
7                 id INTEGER PRIMARY KEY autoincrement,
8                 tr_status INTEGER,
9                 file_path TEXT,
10                 dev_name TEXT,
11                 timestamp INTEGER default 0,
12                 addr TEXT
13         );
14         create table if not exists outbound (
15                 id INTEGER PRIMARY KEY autoincrement,
16                 tr_status INTEGER,
17                 file_path TEXT,
18                 dev_name TEXT,
19                 timestamp INTEGER default 0,
20                 addr TEXT
21         );
22         '
23 fi
24
25 # root case
26 if [ ${USER} == "root" ]
27 then
28         # Set vconf values with -g/-u options
29
30         # 5000 is inhouse user id
31         # do not use relative path
32
33         # For the FTP server folder
34
35         if  [ ! -e /opt/share/bt-ftp/Media ]
36         then
37                 ln -s /opt/media /opt/share/bt-ftp/Media
38         fi
39
40         if  [ ! -e /opt/share/bt-ftp/SD_External ]
41         then
42                 ln -s /opt/storage/sdcard /opt/share/bt-ftp/SD_External
43         fi
44
45         vconftool set -t bool memory/private/bluetooth-share/quickpanel_clear_btn_status FALSE -g 6520 -i
46
47         chown :5000 /opt/dbspace/.bluetooth_trasnfer.db
48         chown :5000 /opt/dbspace/.bluetooth_trasnfer.db-journal
49 fi
50
51 chmod 660 /opt/dbspace/.bluetooth_trasnfer.db
52 chmod 660 /opt/dbspace/.bluetooth_trasnfer.db-journal