Commit 4187264 1 parent 684568a commit 4187264 Copy full SHA for 4187264
File tree 2 files changed +6
-6
lines changed
recipes-connectivity/modemmanager/modemmanager
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 10
10
exit 1
11
11
fi
12
12
13
- if [ " $IS_ON_CARRIER " == " yes" ]; then
14
- if [ " $CARRIER_NAME " == " max" ]; then
13
+ if [ " $IS_ON_CARRIER " = " yes" ]; then
14
+ if [ " $CARRIER_NAME " = " max" ]; then
15
15
echo " Power on SARA-R4 usb modem on $CARRIER_NAME "
16
16
gpioset gpiochip5 4=0 # PWR_ON=High
17
17
gpioset gpiochip5 2=1 # RST=Low
18
18
19
19
echo " Power off pcie usb modem on $CARRIER_NAME "
20
20
gpioset gpiochip5 29=0 # PCIE 3V3 BUCK EN (stm32h7 PWM6)
21
- elif [ " $CARRIER_NAME " == " mid" ]; then
21
+ elif [ " $CARRIER_NAME " = " mid" ]; then
22
22
echo " Power off pcie usb modem on $CARRIER_NAME "
23
23
gpioset gpiochip5 5=0 # # PCIE 3V3 BUCK EN (stm32h7 PE10)
24
24
fi
Original file line number Diff line number Diff line change 9
9
exit 1
10
10
fi
11
11
12
- if [ " $IS_ON_CARRIER " == " yes" ]; then
12
+ if [ " $IS_ON_CARRIER " = " yes" ]; then
13
13
# @TODO: we expect to fail if pin owned by kernel (pcie_mini ov)
14
14
# would be more elegant a u-boot env variable to configure usb modems
15
- if [ " $CARRIER_NAME " == " max" ]; then
15
+ if [ " $CARRIER_NAME " = " max" ]; then
16
16
echo " Power on SARA-R4 usb modem on $CARRIER_NAME "
17
17
# Note: we're driving open-drain n-mos
18
18
# pull-ups are provided internally by modem
@@ -25,7 +25,7 @@ if [ "$IS_ON_CARRIER"=="yes" ]; then
25
25
echo " Power on pcie usb modem on $CARRIER_NAME "
26
26
gpioset gpiochip5 29=1 # PCIE 3V3 BUCK EN (stm32h7 PWM6)
27
27
sleep 1
28
- elif [ " $CARRIER_NAME " == " mid" ]; then
28
+ elif [ " $CARRIER_NAME " = " mid" ]; then
29
29
echo " Power on pcie usb modem on $CARRIER_NAME "
30
30
gpioset gpiochip5 5=1 # # PCIE 3V3 BUCK EN (stm32h7 PE10)
31
31
sleep 1
You can’t perform that action at this time.
0 commit comments