Line 21... |
Line 21... |
21 |
. /lib/lsb/init-functions |
21 |
. /lib/lsb/init-functions |
22 |
|
22 |
|
23 |
freq=142.997918 |
23 |
freq=142.997918 |
24 |
|
24 |
|
25 |
case "$1" in |
25 |
case "$1" in |
26 |
start) |
26 |
start|required-start) |
27 |
"usbsoftrock -m 2 set freq $freq" |
27 |
"usbsoftrock -m 2 set freq $freq" |
28 |
;; |
28 |
;; |
29 |
restart|reload|force-reload) |
29 |
restart|reload|force-reload) |
30 |
echo "Re-tunning the local oscilator" >&2 |
30 |
echo "Re-tunning the local oscilator" >&2 |
31 |
"usbsoftrock -m 2 set freq 20.000" |
31 |
"usbsoftrock -m 2 set freq 20.000" |
32 |
wait 1 |
32 |
wait 1 |
33 |
"usbsoftrock -m 2 set freq $freq" |
33 |
"usbsoftrock -m 2 set freq $freq" |
34 |
exit 3 |
34 |
exit 3 |
35 |
;; |
35 |
;; |
36 |
stop) |
36 |
stop|required-stop) |
37 |
# No-op |
37 |
# No-op |
38 |
;; |
38 |
;; |
39 |
*) |
39 |
*) |
40 |
echo "Error: argument '$1' not supported" >&2 |
40 |
echo "Error: argument '$1' not supported" >&2 |
41 |
echo "Usage: $0 start|stop" >&2 |
41 |
echo "Usage: $0 start|stop" >&2 |