Quote from cinfoHi,
/sbin/dev_frontpanel.sh
Quellcode
...
Danke.
Das scheint irgendwie nicht immer zu funktionieren.
Ich mach das mal hardcoded und protokolliere das mit.
Bash
#!/bin/sh
myname=`basename $0`
exec >> /dev/linkfrontpanel.log 2>&1
logger -t $myname start
CALLER=$(ps ax | grep "^ *$PPID" | awk '{print $5 " " $6 " " $7}')
echo I was called from $CALLER @ `cat /proc/uptime`
# automatic frontpanel detection not working
# hardcoded:
ln -sfv /dev/ttyS2 /dev/frontpanel
logger -s -t $myname linking /dev/frontpanel to /dev/ttyS2
if grep -q 10027910 /proc/bus/pci/devices ; then
# RB AVG II
echo "$(date) RB AVG II found" >> /dev/linkfrontpanel.log.2
elif grep -q 808627a0 /proc/bus/pci/devices ; then
# RB AVG I
echo "$(date) RB AVG I found" >> /dev/linkfrontpanel.log.2
else
# no RB AVG
echo "$(date) no RB AVG found" >> /dev/linkfrontpanel.log.2
cat /proc/bus/pci/devices >> /dev/linkfrontpanel.log.2
fi
Display More