mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-09 20:18:19 +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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user