-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/firstboot reconfigure (#175)
* introduce wb-firstboot service * migrate udev rules install to wb-firstboot.d * bump version * migrate to wb-prepare.d * migrate to wb-prepare.d * rm of_magic * Revert "rm of_magic" This reverts commit baa3f24.
- Loading branch information
Showing
4 changed files
with
51 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
|
||
. /usr/lib/wb-utils/wb_env.sh | ||
wb_source "of" | ||
|
||
RULES_DST_DIR=/etc/udev/rules.d | ||
RULES_DIR=/usr/share/wb-configs/udev/ | ||
|
||
# Args: | ||
# - rules file (e.g. "99-wb-uart") | ||
# - suffix (e.g. "wb5") | ||
install_rules() { | ||
ucf --debconf-ok "$RULES_DIR/$1.rules.$2" "$RULES_DST_DIR/$1.rules" | ||
} | ||
|
||
if of_machine_match "wirenboard,wirenboard-85x"; then | ||
install_rules 99-wb-uart wb85x | ||
install_rules 99-wb-ethernet wb8xx | ||
elif of_machine_match "wirenboard,wirenboard-84x"; then | ||
install_rules 99-wb-uart wb84x | ||
install_rules 99-wb-ethernet wb8xx | ||
elif of_machine_match "wirenboard,wirenboard-720"; then | ||
install_rules 99-wb-uart wb72 | ||
install_rules 99-wb-ethernet wb72 | ||
elif of_machine_match "contactless,imx6ul-wirenboard670"; then | ||
install_rules 99-wb-uart wb67 | ||
install_rules 99-wb-ethernet wb6 | ||
elif of_machine_match "contactless,imx6ul-wirenboard60"; then | ||
install_rules 99-wb-uart wb6 | ||
install_rules 99-wb-ethernet wb6 | ||
elif of_machine_match "contactless,imx28-wirenboard50"; then | ||
install_rules 99-wb-uart wb5 | ||
elif of_machine_match "contactless,imx23-wirenboard41"; then | ||
install_rules 99-wb-uart wb4 | ||
elif of_machine_match "contactless,imx23-wirenboard32"; then | ||
install_rules 99-wb-uart wb3 | ||
elif of_machine_match "contactless,imx23-wirenboard28"; then | ||
install_rules 99-wb-uart wb2 | ||
else | ||
install_rules 99-wb-uart default | ||
fi | ||
|
||
udevadm trigger # apply new udev rules |
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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
wb-configs (3.29.0) stable; urgency=medium | ||
|
||
* migrate udev rules installation to wb-prepare.d | ||
|
||
-- Vladimir Romanov <[email protected]> Thu, 08 Aug 2024 16:42:08 +0300 | ||
|
||
wb-configs (3.28.0) stable; urgency=medium | ||
|
||
* add wb-uart udev rules for wb85x | ||
|
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