Release Tizen2.0 beta
[framework/location/gps-manager.git] / debian / gps-manager.postinst.in
1 #!/bin/sh
2
3 ARCH=@ARCH@
4
5 if [ "${USER}" = "root" ]
6 then
7 #Change File owner
8         #Executable file
9         chown root:root /etc/rc.d/init.d/gps-manager
10         chown root:root /etc/rc.d/rc3.d/S90gps-manager
11         chown root:root /etc/rc.d/rc5.d/S90gps-manager
12 #Change File Permission
13         #Executable file
14         chmod 700 /etc/rc.d/init.d/gps-manager
15         chmod 700 /etc/rc.d/rc3.d/S90gps-manager
16         chmod 700 /etc/rc.d/rc5.d/S90gps-manager
17 fi
18
19 #GPS Indicator value
20 vconftool set -t int memory/location/position/state 0 -i
21 vconftool set -t int memory/location/gps/state 0 -i
22 vconftool set -t int memory/location/wps/state 0 -i
23
24 #GPS_SETTING
25 vconftool set -t int db/location/gps/Operation "1" -f
26 vconftool set -t int db/location/gps/Starting "0" -f
27 vconftool set -t int db/location/gps/Session "1" -f
28
29 #SUPL_SETTING
30 vconftool set -t string db/location/supl/Server "bcmls2.glpals.com" -f
31 vconftool set -t int db/location/supl/Port "7275" -f
32 vconftool set -t int db/location/supl/SslEnabled "0" -f
33
34 #NMEA_SETTING
35 vconftool set -t int db/location/nmea/LoggingEnabled "0" -f
36
37 #REPLAY_SETTING
38 vconftool set -t string db/location/replay/FileName "nmea_replay.log" -f
39 if [ $ARCH == "armel" ]; then
40         vconftool set -t int db/location/replay/ReplayEnabled "0" -f
41         vconftool set -t int db/location/replay/ReplayMode "1" -f
42 else
43         vconftool set -t int db/location/replay/ReplayEnabled "1" -f
44         vconftool set -t int db/location/replay/ReplayMode "0" -f
45 fi
46 vconftool set -t double db/location/replay/ManualLatitude "0.0" -f
47 vconftool set -t double db/location/replay/ManualLongitude "0.0" -f
48 vconftool set -t double db/location/replay/ManualAltitude "0.0" -f
49
50 sync