-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this build works, it includes labtool and networking binaries like ip…
…erf, nmcli, etc
- Loading branch information
Showing
9 changed files
with
98 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FILESEXTRAPATHS_append := "${THISDIR}/files:" | ||
|
||
SRC_URI += "file://opentrons-SetUp.ini" | ||
|
||
do_install_append() { | ||
# install custom SetUp.ini | ||
install -d ${D}/home/root | ||
install -m 755 ${WORKDIR}/opentrons-SetUp.ini ${D}/home/root/SetUp.ini | ||
} |
2 changes: 1 addition & 1 deletion
2
layers/meta-opentrons/recipes-core/base-files/files/custom-fstab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
layers/meta-opentrons/recipes-srcc-testing/wifi-mode-switch/files/switch-wifi-mode.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#! /bin/bash | ||
|
||
PROFILE_ENV="/etc/profile.d/wifi-mode.sh" | ||
WIFI_CONFIG="/etc/modprobe.d/toradex-wifi-config.conf" | ||
|
||
print_menu() { | ||
cat <<-EOF | ||
Select Wifi Mode | ||
0: Exit | ||
1: Normal Mode - iperf, nmcli, etc | ||
2: MFG Mode - labtool | ||
EOF | ||
} | ||
|
||
main() { | ||
# print options and get user input | ||
print_menu | ||
read INPUT | ||
case $INPUT in | ||
1) | ||
echo "Setting WIFI Normal Mode" | ||
cat <<-EOF > $WIFI_CONFIG | ||
blacklist mlan bt8xxx | ||
install mlan /bin/false | ||
install bt8xxx /bin/false | ||
EOF | ||
|
||
# set profile.d | ||
cat <<-EOF > $PROFILE_ENV | ||
echo "Entered Normal Wifi Mode" | ||
EOF | ||
;; | ||
2) | ||
echo "Setting WIFI MFG Mode" | ||
cat <<-EOF > $WIFI_CONFIG | ||
blacklist mwifiex mwifiex_sdio btmrvl btmrvl_sdio | ||
install mwifiex /bin/false | ||
install btmrvl /bin/false | ||
EOF | ||
|
||
# set profile.d | ||
cat <<-EOF > $PROFILE_ENV | ||
echo "Entered MFG Wifi Mode" | ||
EOF | ||
;; | ||
*) | ||
echo "Cancelled" | ||
return 0; | ||
esac | ||
|
||
echo "Rebooting the device to apply settings" | ||
reboot -f | ||
} | ||
|
||
main "$@" |
3 changes: 3 additions & 0 deletions
3
layers/meta-opentrons/recipes-srcc-testing/wifi-mode-switch/files/wifi-mode.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#! /bin/bash | ||
|
||
echo "Entered MFG Wifi Mode" |
25 changes: 25 additions & 0 deletions
25
layers/meta-opentrons/recipes-srcc-testing/wifi-mode-switch/wifi-mode-switch.bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
SUMMARY = "Scripts for testing" | ||
LICENSE = "Apache-2.0" | ||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" | ||
|
||
RDEPENDS_${PN} += "bash" | ||
FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
|
||
SRC_URI += "\ | ||
file://switch-wifi-mode.sh \ | ||
file://wifi-mode.sh \ | ||
" | ||
|
||
do_install() { | ||
install -d ${D}/home/root | ||
install -m 755 ${WORKDIR}/switch-wifi-mode.sh ${D}/home/root/switch-wifi-mode.sh | ||
|
||
# install prodile.d | ||
install -d ${D}${sysconfdir}/profile.d/ | ||
install -m 755 ${WORKDIR}/wifi-mode.sh ${D}${sysconfdir}/profile.d/wifi-mode.sh | ||
} | ||
|
||
FILES_${PN} += "\ | ||
/home/root/switch-wifi-mode.sh \ | ||
${sysconfdir}/profile.d/wifi-mode.sh \ | ||
" |
Binary file not shown.