- #!/bin/sh
- # get led status
- ec_suspend=`echo "111111" | sudo -S ls`
- dipdata5=`sudo ./dip_switch/dip 5 | grep -s "GPIO1 status" | awk '{print $4}'`
- dipdata6=`sudo ./dip_switch/dip 6 | grep -s "GPIO2 status" | awk '{print $4}'`
- dipdata=$((dipdata5+dipdata6))
- echo $dipdata
|