Skip to content

Commit

Permalink
[device]: do not export gpio{1,2} if already exist on S6000 (#1547)
Browse files Browse the repository at this point in the history
  • Loading branch information
lguohan authored Mar 30, 2018
1 parent 37d0ff3 commit a5bfa2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions device/dell/x86_64-dell_s6000_s1220-r0/installer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ if [ "$install_env" = "onie" ]; then
echo "Replace ONIE reboot with Dell reset commands"

# set I2C GPIO mux
echo 1 > /sys/class/gpio/export
echo 2 > /sys/class/gpio/export
[ -d /sys/class/gpio/gpio1 ] || echo 1 > /sys/class/gpio/export
[ -d /sys/class/gpio/gpio2 ] || echo 2 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio1/direction
echo out > /sys/class/gpio/gpio2/direction
echo 0 > /sys/class/gpio/gpio1/value
Expand Down

0 comments on commit a5bfa2c

Please sign in to comment.