dm: script: use -d to check existence of gpio460

/sys/class/gpio/gpio460 is a directory,
should use -d instead of -f to check its existence.

Tracked-On: #2328
Signed-off-by: Binbin Wu <binbin.wu@intel.com>
This commit is contained in:
Binbin Wu 2019-01-21 13:25:08 +08:00 committed by wenlingz
parent 6a6fe829c7
commit a86008ebf0

View File

@ -412,7 +412,7 @@ do
esac
done
if [ ! -f "/sys/class/gpio/gpio460" ]; then
if [ ! -d "/sys/class/gpio/gpio460" ]; then
echo "export gpio460"
echo 460 > /sys/class/gpio/export
echo 'high' > /sys/class/gpio/gpio460/direction