upload tizen1.0 source
[framework/location/libslp-location.git] / debian / libslp-location.postinst
1 #!/bin/sh
2
3 #setting 
4 if [ "${USER}" = "root" ]
5 then
6 vconftool set -t int db/location/last/gps/Timestamp "0" -f
7 vconftool set -t double db/location/last/gps/Latitude "0.0" -f
8 vconftool set -t double db/location/last/gps/Longitude "0.0" -f
9 vconftool set -t double db/location/last/gps/Altitude "0.0" -f
10 vconftool set -t double db/location/last/gps/HorAccuracy "0.0" -f
11 vconftool set -t double db/location/last/gps/VerAccuracy "0.0" -f
12 vconftool set -t double db/location/last/gps/Speed "0.0" -f
13 vconftool set -t double db/location/last/gps/Direction "0.0" -f
14 vconftool set -t int db/location/last/wps/Timestamp "0" -f
15 vconftool set -t double db/location/last/wps/Latitude "0.0" -f
16 vconftool set -t double db/location/last/wps/Longitude "0.0" -f
17 vconftool set -t double db/location/last/wps/Altitude "0.0" -f
18 vconftool set -t double db/location/last/wps/HorAccuracy "0.0" -f
19 vconftool set -t double db/location/last/wps/Speed "0.0" -f
20 vconftool set -t double db/location/last/wps/Direction "0.0" -f
21 vconftool set -t int db/location/setting/GpsEnabled "0" -g 6514 -f
22 vconftool set -t int db/location/setting/AgpsEnabled "0" -g 6514 -f
23 vconftool set -t int db/location/setting/NetworkEnabled "0" -g 6514 -f
24 vconftool set -t int db/location/setting/SensorEnabled "0" -g 6514 -f
25 else
26
27 vconftool set -t int db/location/last/gps/Timestamp "0" -f
28 vconftool set -t double db/location/last/gps/Latitude "0.0" -f
29 vconftool set -t double db/location/last/gps/Longitude "0.0" -f
30 vconftool set -t double db/location/last/gps/Altitude "0.0" -f
31 vconftool set -t double db/location/last/gps/HorAccuracy "0.0" -f
32 vconftool set -t double db/location/last/gps/VerAccuracy "0.0" -f
33 vconftool set -t double db/location/last/gps/Speed "0.0" -f
34 vconftool set -t double db/location/last/gps/Direction "0.0" -f
35 vconftool set -t int db/location/last/wps/Timestamp "0" -f
36 vconftool set -t double db/location/last/wps/Latitude "0.0" -f
37 vconftool set -t double db/location/last/wps/Longitude "0.0" -f
38 vconftool set -t double db/location/last/wps/Altitude "0.0" -f
39 vconftool set -t double db/location/last/wps/HorAccuracy "0.0" -f
40 vconftool set -t double db/location/last/wps/Speed "0.0" -f
41 vconftool set -t double db/location/last/wps/Direction "0.0" -f
42 vconftool set -t int db/location/setting/GpsEnabled "0" -g -f
43 vconftool set -t int db/location/setting/AgpsEnabled "0" -f
44 vconftool set -t int db/location/setting/NetworkEnabled "0" -f
45 vconftool set -t int db/location/setting/SensorEnabled "0" -f
46 fi
47
48 sync