Skip to content

Instantly share code, notes, and snippets.

@azbesthu
Created July 12, 2015 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azbesthu/6bd11e2e31c4579a19fb to your computer and use it in GitHub Desktop.
Save azbesthu/6bd11e2e31c4579a19fb to your computer and use it in GitHub Desktop.
dvb-switch for t230
#! /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
@azbesthu
Copy link
Author

tvheadend service should be extended with
Required-Start: dvbc-switch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment