update devtem-socat.sh

This commit is contained in:
cuu 2022-05-22 10:20:25 +08:00
parent abeb662fba
commit 682c67aabb

View File

@ -1,7 +1,16 @@
#!/bin/bash #!/bin/bash
sleep 4 sleep 4
chmod 777 /tmp/DEVTERM_PRINTER_IN chmod 777 /tmp/DEVTERM_PRINTER_IN
chmod 777 /tmp/DEVTERM_PRINTER_OUT chmod 777 /tmp/DEVTERM_PRINTER_OUT
DC=`find /sys/bus/iio/devices/iio\:device{0,1} | wc -l`
if [ "$DC" -gt "1" ];
then
echo "adc node err"
else
ln -s /sys/bus/iio/devices/iio\:device*/in_voltage*_raw /tmp/devterm_adc ln -s /sys/bus/iio/devices/iio\:device*/in_voltage*_raw /tmp/devterm_adc
fi