/ 雑記帳

systemctl service が書けないので(笑)

[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

— posted by くま at 11:36 am  

この記事に対するコメントはありません

<< 2022.3 >>
SMTWTFS
  12345
6 7 8 9 101112
13 14 15 1617 18 19
2021 2223 24 2526
27 28293031  
 
























T: Y: ALL: Online:
ThemePanel
Created in 0.0487 sec.