[root@arch09 ~]# more D-start.sh
#!/bin/bash
dev1=`lsmod | awk '{print $1}' | grep alsa_bridge`
com1=`ps aux | grep syncAlsaSingle_x64 | grep diretta | awk '{print $11}'`
com2=`ps aux | grep syncAlsaSingle_x64 | grep diretta | awk '{print $11}' | awk -F"/" '{print $7}'`
#echo $dev1
#echo $com1
#echo $com2
if [ "${dev1}" = "alsa_bridge" ] && [ "${com2}" = "syncAlsaSingle_x64" ]; then
echo "----------------------------------"
echo "${dev1}"
echo "${com2}"
echo "OK"
echo "----------------------------------"
elif [ "${dev1}" = "alsa_bridge" ]; then
echo "----------------------------------"
echo "NO"
lsmod | grep alsa*
echo ""
echo "/home/user/diretta/rt_compact/DirettaALSAdriver/syncAlsaSingle_x64"
echo "----------------------------------"
else
echo "----------------------------------"
echo "NO"
echo ""
echo "insmod /home/user/diretta/rt_compact/DirettaALSAdriver/driver/alsa_bridge.ko"
lsmod | grep alsa*
echo ""
echo "/home/user/diretta/rt_compact/DirettaALSAdriver/syncAlsaSingle_x64"
echo "----------------------------------"
fi
Comments