User:Rigolo

From MythTV Official Wiki
Revision as of 00:10, 13 January 2008 by Rigolo (talk | contribs) (moved away from mythtv wiki)

Jump to: navigation, search

(There is currently some info on this page)

RGB Scart

My TV

KV-32FD1E

PCI-e TV Tuner cards

(not checked if they are supported, just list them when I find them)

MythBuntu 7.10 with DVB-C and sasc-ng

moved to: http://rigolo.googlepages.com/sasc-ng

sasc-ng init scripts

Here is a collection of init or rc scripts for sasc-ng that I found "on the net"

[archlinux rc script]


Script.png /etc/rc.d/sascd

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

PID=`pidof -o %PPID /usr/bin/sasc-ng`

[ -f /etc/sasc.conf ] && source /etc/sasc.conf

case "$1" in
  start)
    stat_busy "Starting SASC-NG"
    /sbin/modprobe dvbloopback $LOOPDRIVEROPTION
    sleep 2
    [ -z "$PID" ] && /usr/bin/sasc-ng $SASCOPTION > /var/log/sascd 2>&1 &
    if [ $? -gt 0 ]; then
      stat_fail
    else
      echo $PID > /var/run/sasc-ng.pid
      add_daemon sasc-ng
      stat_done
    fi
    ;;
  stop)
    stat_busy "Stopping SASC-NG"
    [ ! -z "$PID" ]  && kill $PID &> /dev/null
    rmmod dvbloopback &
    if [ $? -gt 0 ]; then
      stat_fail
    else
      rm_daemon sasc-ng
      stat_done
    fi
    ;;
  restart)
    $0 stop
    sleep 1
    $0 start
    ;;
  *)
    echo "usage: $0 {start|stop|restart}"
    ;;
esac
exit 0


Script.png /etc/sasc.conf

# Default SASC-NG startup config

# Startup Options passed to dvbloopback driver:  Adjust according to your number of dvb cards.
LOOPDRIVEROPTION="num_adapters=1"

# Startup Options passed to SASC-NG.
# Adjust according to your devices. You can also use multiple dvb card arguments joined
# SASCOPTION=" --cam-dir=/video/plugins -r 0 -v 1 -o  "   # this is an example for sasc-ng R1 - R66
	SASCOPTION="-D -j 0:1 --cam-budget"
	
# Set log file for output
LOGFILE="-l /var/log/sascd.log"

# Set directory for sc files
SCFILES="--cam-dir=/etc/vdr/plugins/sc_files"

# write pid to file
#PIDFILE="-P /var/run/sascd.pid"

[sasc-ng.txt]


Script.png /etc/rc.d/init.d/sasc-ng


#!/bin/bash
#
# description: SASC-NG Process
# processname: sasc-ng
# chkconfig: - 75 12

# Source function library.
. /etc/rc.d/init.d/functions

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
SASC_DAEMON="sasc-ng"
SASC_USER="root"
SASC_LOGFILE="/var/log/mythtv/sasc-ng.log"
SASC_OPTIONS="-j 0:1"
SASC_CAMDIR="/etc/sasc-ng"

ENABLED=0
test -f /etc/sasc-ng/sasc-ng.conf && . /etc/sasc-ng/sasc-ng.conf
test "${ENABLED}" != "0" || exit 0

SASC_CMD="${SASC_DAEMON} ${SASC_OPTIONS} --cam-dir ${SASC_CAMDIR}"

RETVAL=0

start() {
    # Check if SASC is already running, otherwise start it
    if [ ! -f /var/lock/subsys/${SASC_DAEMON} ]; then
        echo -n "Starting ${SASC_DAEMON}: "
        daemon --user ${SASC_USER} ${SASC_CMD} >> ${SASC_LOGFILE} &
        RETVAL=$?
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/${SASC_DAEMON}
        echo
    fi
    return $RETVAL
}
 
stop() {
    echo -n "Stopping ${SASC_DAEMON}: "
    killproc ${SASC_DAEMON}
    RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/${SASC_DAEMON}
    echo
    return $RETVAL
}
 
# See how we were called.
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        stop
        start
        ;;
  *)
        echo $"Usage: service $SASC_DAEMON {start|stop|help}"
        exit 1
esac

exit $RETVAL