Line 16... |
Line 16... |
16 |
|
16 |
|
17 |
#cd ~/programy/usbsoftrock |
17 |
#cd ~/programy/usbsoftrock |
18 |
#./usbsoftrock -s 10 calibrate |
18 |
#./usbsoftrock -s 10 calibrate |
19 |
#./usbsoftrock -m 2 set freq 20.000 |
19 |
#./usbsoftrock -m 2 set freq 20.000 |
20 |
|
20 |
|
21 |
PATH=/sbin:/bin |
21 |
PATH=/sbin:/bin:/usr/local/bin/ |
22 |
|
22 |
|
23 |
. /lib/lsb/init-functions |
23 |
. /lib/lsb/init-functions |
24 |
|
24 |
|
25 |
freq=142.997918 |
25 |
freq=142.997918 |
26 |
|
26 |
|
Line 28... |
Line 28... |
28 |
start) |
28 |
start) |
29 |
"usbsoftrock -m 2 set freq $freq" |
29 |
"usbsoftrock -m 2 set freq $freq" |
30 |
;; |
30 |
;; |
31 |
restart|reload|force-reload) |
31 |
restart|reload|force-reload) |
32 |
echo "Re-tunning the local oscilator" >&2 |
32 |
echo "Re-tunning the local oscilator" >&2 |
33 |
"usbsoftrock -m 2 set freq 20.000" |
33 |
usbsoftrock -m 2 set freq 20.000 |
34 |
wait 1 |
34 |
wait 1 |
35 |
"usbsoftrock -m 2 set freq $freq" |
35 |
usbsoftrock -m 2 set freq $freq |
36 |
exit 3 |
36 |
exit 3 |
37 |
;; |
37 |
;; |
38 |
stop) |
38 |
stop) |
39 |
# No-op |
39 |
# No-op |
40 |
;; |
40 |
;; |