Git init
[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/position/Timestamp "0" -f
7 vconftool set -t string db/location/position/LastPosition "" -f
8 vconftool set -t int db/location/position/LastAccuracy "0" -f
9 vconftool set -t int db/location/setting/GpsEnabled "0" -g 6514 -f
10 vconftool set -t int db/location/setting/AgpsEnabled "0" -g 6514 -f
11 vconftool set -t int db/location/setting/NetworkEnabled "0" -g 6514 -f
12 vconftool set -t int db/location/setting/SensorEnabled "0" -g 6514 -f
13 else
14 vconftool set -t int db/location/position/Timestamp "0" -f
15 vconftool set -t string db/location/position/LastPosition "" -f
16 vconftool set -t int db/location/position/LastAccuracy "0" -f
17 vconftool set -t int db/location/setting/GpsEnabled "0" -g -f
18 vconftool set -t int db/location/setting/AgpsEnabled "0" -f
19 vconftool set -t int db/location/setting/NetworkEnabled "0" -f
20 vconftool set -t int db/location/setting/SensorEnabled "0" -f
21 fi
22
23 sync