meta-quanta: gbs: fix command parsing error for SATA present LED
Fix get SATA present command parsing error due to the last
change to the command parsing string
(From meta-quanta rev: 529a8df55b2af8eed0d1eb0594a162cfff631aab)
Signed-off-by: George Hung <george.hung@quantatw.com>
Change-Id: I86d2923b331e19b77dca784ffcf691c5e5f4f708
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-quanta/meta-gbs/recipes-gbs/gbs-sysinit/files/gbs-sysinit.sh b/meta-quanta/meta-gbs/recipes-gbs/gbs-sysinit/files/gbs-sysinit.sh
index 9858404..68adfed 100644
--- a/meta-quanta/meta-gbs/recipes-gbs/gbs-sysinit/files/gbs-sysinit.sh
+++ b/meta-quanta/meta-gbs/recipes-gbs/gbs-sysinit/files/gbs-sysinit.sh
@@ -122,7 +122,7 @@
return 1
fi
# sata_prsnt_n is active low => value "true" means low
- if [[ ${sata_prsnt_n} == "true" ]]; then
+ if [[ ${sata_prsnt_n} == "b true" ]]; then
set_gpio_direction 'HDD_PRSNT_N' low
else
set_gpio_direction 'HDD_PRSNT_N' high