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
4c40c05b
Commit
4c40c05b
authored
9 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Skip package installs if in mesh mode
parent
48c9d239
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-client
+12
-8
12 additions, 8 deletions
src/freedombone-client
src/freedombone-mesh
+5
-2
5 additions, 2 deletions
src/freedombone-mesh
with
17 additions
and
10 deletions
src/freedombone-client
+
12
−
8
View file @
4c40c05b
...
...
@@ -104,9 +104,11 @@ function configure_ssh_client {
}
function
mesh_babel
{
sudo
apt-get
-y
install
babeld
sudo
apt-get
-y
install
irssi mumble
sudo
apt-get
-y
install
toxic
if
[
!
-f
/tmp/meshtype
]
;
then
sudo
apt-get
-y
install
babeld
sudo
apt-get
-y
install
irssi mumble
sudo
apt-get
-y
install
toxic
fi
babel_script
=
/tmp/babel
...
...
@@ -188,11 +190,13 @@ function mesh_babel {
}
function
mesh_batman
{
sudo
apt-get
-y
install
iproute bridge-utils libnetfilter-conntrack3 batctl
sudo
apt-get
-y
install
python-dev libevent-dev ebtables python-pip
sudo
apt-get
-y
install
wireless-tools rfkill
sudo
apt-get
-y
install
irssi mumble
sudo
apt-get
-y
install
toxic
if
[
!
-f
/tmp/meshtype
]
;
then
sudo
apt-get
-y
install
iproute bridge-utils libnetfilter-conntrack3 batctl
sudo
apt-get
-y
install
python-dev libevent-dev ebtables python-pip
sudo
apt-get
-y
install
wireless-tools rfkill
sudo
apt-get
-y
install
irssi mumble
sudo
apt-get
-y
install
toxic
fi
batman_script
=
/tmp/batman
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-mesh
+
5
−
2
View file @
4c40c05b
...
...
@@ -146,13 +146,15 @@ if [ ! -f $MUMBLE_PATH ]; then
sudo cp
$DHTNODES
$DHTNODES
.internet
fi
fi
sudo
lstox
-f
dht
>
$DHTNODES
lstox
-f
dht
>
/tmp/dht
sudo cp
/tmp/dht
$DHTNODES
PEER_TOX_ID
=
$(
lstox
-p
$AVAHI_DOMAIN
|
head
-n
1 |
awk
-F
' '
'{print $2}'
)
if
[
${#
PEER_TOX_ID
}
-gt
30
]
;
then
echo
"/add
$PEER_TOX_ID
"
|
$TOXIC_PATH
-d
exit
0
else
echo
$PEER_TOX_ID
echo
"Tox ID for
$AVAHI_DOMAIN
was not found"
exit
6
fi
...
...
@@ -204,7 +206,8 @@ else
sudo cp
$DHTNODES
$DHTNODES
.internet
fi
fi
sudo
lstox
-f
dht
>
$DHTNODES
lstox
-f
dht
>
/tmp/dht
sudo cp
/tmp/dht
$DHTNODES
PEER_TOX_ID
=
$(
lstox
-p
$AVAHI_DOMAIN
|
head
-n
1 |
awk
-F
' '
'{print $2}'
)
if
[
${#
PEER_TOX_ID
}
-gt
30
]
;
then
echo
"/add
$PEER_TOX_ID
...
...
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