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