Skip to content

Commit

Permalink
imx8mm-var-dart: Align wifi / bt pm-suspend scripts to Yocto
Browse files Browse the repository at this point in the history
Relevant Yocto changes
varigit/meta-variscite-imx@472c645

Signed-off-by: Harshesh Valera <harshesh.v@variscite.com>
  • Loading branch information
hj2006 committed Apr 7, 2020
1 parent 6f187de commit a36c1a5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
14 changes: 14 additions & 0 deletions variscite/imx8mm-var-dart/01-bt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

. /etc/bluetooth/variscite-bt.conf
. /etc/bluetooth/variscite-bt-common.sh

case $1 in

"suspend")
bt_stop
;;
"resume")
bt_start
;;
esac
5 changes: 5 additions & 0 deletions variscite/imx8mm-var-dart/wifi.sh → variscite/imx8mm-var-dart/02-wifi.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
. /etc/wifi/variscite-wifi.conf
. /etc/wifi/variscite-wifi-common.sh

# Exit if WIFI is not available
if wifi_should_not_be_stopped; then
exit 0
fi

case $1 in

"suspend")
Expand Down
4 changes: 3 additions & 1 deletion variscite/weston_rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,9 @@ EOF
rm -rf ${ROOTFS_BASE}/usr/lib/pm-utils/sleep.d/
rm -rf ${ROOTFS_BASE}/usr/lib/pm-utils/module.d/
rm -rf ${ROOTFS_BASE}/usr/lib/pm-utils/power.d/
install -m 0755 ${G_VARISCITE_PATH}/${MACHINE}/wifi.sh \
install -m 0755 ${G_VARISCITE_PATH}/${MACHINE}/01-bt.sh \
${ROOTFS_BASE}/etc/pm/sleep.d/
install -m 0755 ${G_VARISCITE_PATH}/${MACHINE}/02-wifi.sh \
${ROOTFS_BASE}/etc/pm/sleep.d/

## end packages stage ##
Expand Down

0 comments on commit a36c1a5

Please sign in to comment.