diff options
Diffstat (limited to 'meta-quanta/meta-gsj/recipes-gsj/gsj-hotswap-change-setting/files/gsj-hotswap-change-setting.sh')
-rw-r--r-- | meta-quanta/meta-gsj/recipes-gsj/gsj-hotswap-change-setting/files/gsj-hotswap-change-setting.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-quanta/meta-gsj/recipes-gsj/gsj-hotswap-change-setting/files/gsj-hotswap-change-setting.sh b/meta-quanta/meta-gsj/recipes-gsj/gsj-hotswap-change-setting/files/gsj-hotswap-change-setting.sh index bed745dda3..118fe6cc94 100644 --- a/meta-quanta/meta-gsj/recipes-gsj/gsj-hotswap-change-setting/files/gsj-hotswap-change-setting.sh +++ b/meta-quanta/meta-gsj/recipes-gsj/gsj-hotswap-change-setting/files/gsj-hotswap-change-setting.sh @@ -17,7 +17,7 @@ function set_hotswap_reg() function get_hotswap_value() { #get the value of reg "0xd9", return value should be "0x08" - echo "$(i2cget -f -y $I2C_BUS $CHIP_ADDR 0xd9)" + i2cget -f -y $I2C_BUS $CHIP_ADDR 0xd9 } function export_gpio() @@ -32,7 +32,7 @@ function export_gpio() function get_gpio_value() { - echo "$(cat $GPIO_BasePath/gpio$GPIO_ID/value)" + cat $GPIO_BasePath/gpio$GPIO_ID/value } function setting_hotswap() @@ -64,4 +64,4 @@ if [ "$gpio_value" == "1" ];then setting_hotswap else echo "gpio$GPIO_ID value is: $gpio_value, no need to set hotswap." -fi
\ No newline at end of file +fi |