Rev Author Line No. Line
3278 kaklik 1 #!/bin/sh
2 ### BEGIN INIT INFO
3 # Provides: gpsd
4 # Required-Start: $remote_fs $syslog $network
5 # Should-Start: bluetooth dbus udev
6 # Required-Stop: $remote_fs $syslog $network
7 # Default-Start: 2 3 4 5
8 # Default-Stop: 0 1 6
9 # X-Start-Before: ntp
10 # Short-Description: GPS (Global Positioning System) daemon
11 # Description: The gpsd service daemon is able to monitor one or
12 # more GPS devices connected to a host computer, making
13 # all data on the location and movements of the sensors
14 # available to be queried on TCP port 2947.
15 ### END INIT INFO
16  
17 # Author: Bernd Zeimetz <bzed@debian.org>
18 #
19 # Please remove the "Author" lines above and replace them
20 # with your own name if you copy and modify this script.
21  
22 #cd ~/programy/usbsoftrock
23 #./usbsoftrock -s 10 calibrate
24 #./usbsoftrock -m 2 set freq 20.000
25  
26 PATH=/sbin:/bin
27  
28 . /lib/lsb/init-functions
29  
30 freq=142.997918
31  
32 case "$1" in
33 start)
34 "usbsoftrock -m 2 set freq $freq"
35 ;;
36 restart|reload|force-reload)
37 echo "Re-tunning the local oscilator" >&2
38 "usbsoftrock -m 2 set freq 20.000"
39 wait 1
40 "usbsoftrock -m 2 set freq $freq"
41 exit 3
42 ;;
43 stop)
44 # No-op
45 ;;
46 *)
47 echo "Error: argument '$1' not supported" >&2
48 echo "Usage: $0 start|stop" >&2
49 exit 3
50 ;;
51 esac
52  
53