Skip to content

Commit

Permalink
Accton AS5812_54X: support to install on mSATA SSD
Browse files Browse the repository at this point in the history
Signed-off-by: adoyle <[email protected]>
  • Loading branch information
david56 authored and alexdoyle committed May 8, 2019
1 parent db1bcbb commit d226361
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions machine/accton/accton_as5812_54x/installer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,29 @@

description="Accton, as5812_54x"

# Default ONIE block device
install_device_platform()
mass_dev="storage-not-found"
discover_mass_storage()
{
mass_bus="1-1.4:1.0"
mass_bus="$1"
for i in a b c d e ; do
if $(ls -l /sys/block/sd$i/device 2>/dev/null | grep -q "$mass_bus") ; then
echo "/dev/sd$i"
mass_dev="/dev/sd$i"
return 0
fi
done
echo "storage-not-found"
return 1
}

# Default ONIE block device
install_device_platform()
{
discover_mass_storage "target4:0:0" ||
discover_mass_storage "1-1.4:1.0"
ret=$?
echo "$mass_dev"
return $ret
}

# Local Variables:
# mode: shell-script
# eval: (sh-set-shell "/bin/sh" t nil)
Expand Down

0 comments on commit d226361

Please sign in to comment.