Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
firmware
FFS Gluon
Commits
8a51242f
Commit
8a51242f
authored
11 years ago
by
Matthias Schiffer
Browse files
Options
Downloads
Patches
Plain Diff
Some work on the next-node anycast address
parent
05fb012a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
package/gluon-next-node/Makefile
+36
-0
36 additions, 0 deletions
package/gluon-next-node/Makefile
package/gluon-next-node/generate/etc/init.d/gluon-next-node
+25
-0
25 additions, 0 deletions
package/gluon-next-node/generate/etc/init.d/gluon-next-node
with
61 additions
and
0 deletions
package/gluon-next-node/Makefile
0 → 100644
+
36
−
0
View file @
8a51242f
include
$(TOPDIR)/rules.mk
PKG_NAME
:=
gluon-next-node
PKG_VERSION
:=
0.3.2.99
PKG_RELEASE
:=
1
PKG_BUILD_DIR
:=
$(
BUILD_DIR
)
/
$(
PKG_NAME
)
include
$(INCLUDE_DIR)/package.mk
define
Package/gluon-next-node
SECTION
:=
gluon
CATEGORY
:=
Gluon
TITLE
:=
Next-node anycast address
DEPENDS
:=
+gluon-core +gluon-mesh-batman-adv +iproute2 +kmod-macvlan
endef
define
Package/gluon-next-node/description
Gluon community wifi mesh firmware framework
:
next-node anycast address
endef
define
Build/Prepare
mkdir
-p
$(PKG_BUILD_DIR)
endef
define
Build/Configure
endef
define
Build/Compile
endef
define
Package/gluon-next-node/install
$(GLUON_GENERATE)
./generate/*
$(1)/
endef
$(
eval
$(
call BuildPackage,gluon-next-node
))
This diff is collapsed.
Click to expand it.
package/gluon-next-node/generate/etc/init.d/gluon-next-node
0 → 100644
+
25
−
0
View file @
8a51242f
#!/bin/sh /etc/rc.common
# Copyright (C) 2013 Project Gluon
START
=
95
start
()
{
ip
link
add
link
br-mesh name local-node
type
macvlan
ip
link set
local-node address @next_node.mac@
ip address add @next_node.ip4@/32 dev local-node
ip route add @next_node.prefix4@ dev br-freifunk
ip address add @next_node.ip6@/128 dev local-node
ip route add @next_node.prefix6@ dev br-freifunk
ip
link set
local-node up
}
stop
()
{
ip route del @next_node.prefix4@ dev br-freifunk
ip route del @next_node.prefix6@ dev br-freifunk
ip
link set
local-node down
ip
link
del local-node
}
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