#!/bin/sh ### BEGIN INIT INFO # Provides: llxcfg-hwsupport-lliurex-classic # Required-Start: $local_fs $remote_fs # Required-Stop: $local_fs $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start the mixer envy24 sound for cards m-audio 24/96 # Description: System mode startup script for # the mixer envy24. ### END INIT INFO # Author: Alfons Lloret Sananton # main set -e FILENAME="/usr/share/lliurex/llxcfg-hwsupport/asound/ICE1712" case "$1" in start) eval `llxcfg-showvars ASOUND_DRIVER` if [ "$ASOUND_DRIVER" = "ICE1712" ] ; then if [ -f "$FILENAME" ] ; then echo "existe fichero" > /dev/null else lliurex-mixer-custom touch $FILENAME && echo "TRUE" > $FILENAME fi else echo "no existe la tarjeta M2496" > /dev/null fi ;; stop) /usr/sbin/llxcfg-udev-rules exit 0 ;; restart|force-reload) $0 stop $0 start ;; *) echo "Usage: /etc/init.d/lliurex-mixer {start|stop|restart}" exit 0 ;; esac exit 0