Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
8c176928
Commit
8c176928
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Move predictable network device setup to first boot on mesh
parent
a79d279e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/freedombone-image-customise
+0
-1
0 additions, 1 deletion
src/freedombone-image-customise
src/freedombone-image-mesh
+9
-0
9 additions, 0 deletions
src/freedombone-image-mesh
src/freedombone-utils-wifi
+2
-7
2 additions, 7 deletions
src/freedombone-utils-wifi
with
11 additions
and
8 deletions
src/freedombone-image-customise
+
0
−
1
View file @
8c176928
...
...
@@ -591,7 +591,6 @@ initialise_mesh() {
chroot
"
$rootdir
"
apt-get
-yq
install
apt-transport-https
enable_predictable_device_names
configure_firewall
install_avahi
install_batman
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-image-mesh
+
9
−
0
View file @
8c176928
...
...
@@ -74,6 +74,14 @@ IPFS_PORT=4001
CURRENT_BLOG_INDEX
=
/home/
$MY_USERNAME
/.blog-index
# Debian stretch has a problem where the formerly predictable wlan0 and eth0
# device names get assigned random names. This is a hacky workaround.
# Also adding net.ifnames=0 to kernel options on bootloader may work.
function
enable_predictable_device_names
{
ln
-s
/dev/null /etc/udev/rules.d/80-net-setup-link.rules
update-initramfs
-u
}
function
create_avahi_mesh_service
{
service_name
=
$1
service_type
=
$2
...
...
@@ -591,6 +599,7 @@ if [ -f $MESH_INSTALL_SETUP ]; then
#tomb slam all
tmp_ram_disk 100
enable_predictable_device_names
enable_batman_daemon
#create_ram_disk 1
#setup_amnesic_data
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-wifi
+
2
−
7
View file @
8c176928
...
...
@@ -49,13 +49,8 @@ function default_network_config {
# device names get assigned random names. This is a hacky workaround.
# Also adding net.ifnames=0 to kernel options on bootloader may work.
function
enable_predictable_device_names
{
if
[
$rootdir
]
;
then
chroot
"
$rootdir
"
ln
-s
/dev/null /etc/udev/rules.d/80-net-setup-link.rules
chroot
"
$rootdir
"
update-initramfs
-u
else
ln
-s
/dev/null /etc/udev/rules.d/80-net-setup-link.rules
update-initramfs
-u
fi
ln
-s
/dev/null /etc/udev/rules.d/80-net-setup-link.rules
update-initramfs
-u
}
function
wifi_is_running
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment