Created
July 12, 2015 22:10
-
-
Save azbesthu/6bd11e2e31c4579a19fb to your computer and use it in GitHub Desktop.
dvb-switch for t230
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# /etc/init.d/dvbc-switch | |
### BEGIN INIT INFO | |
# Provides: dvbc-switch | |
# Required-Start: $local_fs $remote_fs udev | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Switch multipurpose tuner to DVB-C. | |
# Description: Switch multipurpose tuner to DVB-C. | |
### END INIT INFO | |
start() { | |
/usr/bin/dvb-fe-tool -a 5 -d DVBC/ANNEX_A | |
} | |
stop() { | |
exit 0 | |
} | |
case "$1" in | |
start) | |
start | |
;; | |
stop) | |
stop | |
;; | |
restart) | |
stop | |
start | |
;; | |
*) | |
echo "Usage: $0 {start|stop|restart}" | |
exit 1 | |
;; | |
esac | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tvheadend service should be extended with
Required-Start: dvbc-switch