mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-10 12:32:45 +00:00
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:
parent
6a6fe829c7
commit
a86008ebf0
@ -412,7 +412,7 @@ do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ ! -f "/sys/class/gpio/gpio460" ]; then
|
if [ ! -d "/sys/class/gpio/gpio460" ]; then
|
||||||
echo "export gpio460"
|
echo "export gpio460"
|
||||||
echo 460 > /sys/class/gpio/export
|
echo 460 > /sys/class/gpio/export
|
||||||
echo 'high' > /sys/class/gpio/gpio460/direction
|
echo 'high' > /sys/class/gpio/gpio460/direction
|
||||||
|
Loading…
Reference in New Issue
Block a user