| Paste number 70657: | DVB-T start script |
| Pasted by: | markus__ |
| When: | 7 months, 2 weeks ago |
| Share: | Tweet this! | http://paste.lisp.org/+1IIP |
| Channel: | None |
| Paste contents: |
#!/bin/bash
#
# /etc/rc.d/tv: start/stop tv tuner hardware
#
case $1 in
start)
modprobe mt2060
modprobe af9013
modprobe dvb_usb_af9015
;;
stop)
if lsmod | grep -q dvb_usb_af9015; then
rmmod -s dvb_usb_af9015;
fi
if lsmod | grep -q dvb_usb; then
rmmod -s dvb_usb;
fi
if lsmod | grep -q dvb_core; then
rmmod -s dvb_core;
fi
if lsmod | grep -q af9013; then
rmmod -s af9013;
fi
if lsmod | grep -q mt2060; then
rmmod -s mt2060;
fi
;;
restart)
$0 stop
sleep 3
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
This paste has no annotations.