Rev 3280 Rev 3281
Line 1... Line 1...
1 #!/bin/sh 1 #!/bin/sh
2 ### BEGIN INIT INFO 2 ### BEGIN INIT INFO
3 # Provides: setup_lo 3 # Provides: setup_lo
-   4 # Required-Start: $network $remote_fs $syslog
-   5 # Required-Stop: $network $remote_fs $syslog
4 # Default-Start: 2 3 4 5 6 # Default-Start: 2 3 4 5
5 # Default-Stop: 0 1 6 7 # Default-Stop: 0 1 6
6 # Short-Description: Tune local oscilator 8 # Short-Description: Tune local oscilator
7 # Description: This start-up script tune local oscilator to defined frequency. 9 # Description: This start-up script tune local oscilator to defined frequency.
8 ### END INIT INFO 10 ### END INIT INFO
Line 21... Line 23...
21 . /lib/lsb/init-functions 23 . /lib/lsb/init-functions
22   24  
23 freq=142.997918 25 freq=142.997918
24   26  
25 case "$1" in 27 case "$1" in
26 start|required-start) 28 start)
27 "usbsoftrock -m 2 set freq $freq" 29 "usbsoftrock -m 2 set freq $freq"
28 ;; 30 ;;
29 restart|reload|force-reload) 31 restart|reload|force-reload)
30 echo "Re-tunning the local oscilator" >&2 32 echo "Re-tunning the local oscilator" >&2
31 "usbsoftrock -m 2 set freq 20.000" 33 "usbsoftrock -m 2 set freq 20.000"
32 wait 1 34 wait 1
33 "usbsoftrock -m 2 set freq $freq" 35 "usbsoftrock -m 2 set freq $freq"
34 exit 3 36 exit 3
35 ;; 37 ;;
36 stop|required-stop) 38 stop)
37 # No-op 39 # No-op
38 ;; 40 ;;
39 *) 41 *)
40 echo "Error: argument '$1' not supported" >&2 42 echo "Error: argument '$1' not supported" >&2
41 echo "Usage: $0 start|stop" >&2 43 echo "Usage: $0 start|stop" >&2