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
18d8603f
Commit
18d8603f
authored
9 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Remove the hacky stuff from mesh scripts
parent
ebd45894
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-client
+5
-14
5 additions, 14 deletions
src/freedombone-client
with
5 additions
and
14 deletions
src/freedombone-client
+
5
−
14
View file @
18d8603f
...
...
@@ -122,19 +122,12 @@ function mesh_babel {
echo
' apt-get -y install avahi-utils avahi-autoipd avahi-daemon avahi-dnsconfd'
>>
$babel_script
echo
' sed -i "s|#host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf'
>>
$babel_script
echo
' sed -i "s|host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf'
>>
$babel_script
echo
' if ! grep -q "avahi-daemon" /etc/crontab; then'
>>
$babel_script
echo
' if [ -f /bin/systemctl ]; then'
>>
$babel_script
echo
" echo '* * * * * root systemctl restart avahi-daemon > /dev/null' >> /etc/crontab"
>>
$babel_script
echo
' else'
>>
$babel_script
echo
" echo '* * * * * root service avahi-daemon restart > /dev/null' >> /etc/crontab"
>>
$babel_script
echo
' fi'
>>
$babel_script
echo
' fi'
>>
$babel_script
echo
' if [ -f /bin/systemctl ]; then'
>>
$babel_script
echo
' systemctl restart avahi-daemon'
>>
$babel_script
echo
' else'
>>
$babel_script
echo
' service avahi-daemon restart'
>>
$babel_script
echo
' echo "babel" > /tmp/meshtype'
>>
$babel_script
echo
' fi'
>>
$babel_script
echo
' echo "babel" > /tmp/meshtype'
>>
$babel_script
echo
'fi'
>>
$babel_script
echo
''
>>
$babel_script
echo
"IFACE=
$WIFI_INTERFACE
"
>>
$babel_script
...
...
@@ -207,12 +200,10 @@ function mesh_batman {
echo
' sed -i "s|use-ipv4=.*|use-ipv4=yes|g" /etc/avahi/avahi-daemon.conf'
>>
$batman_script
echo
' sed -i "s|use-ipv6=.*|use-ipv6=no|g" /etc/avahi/avahi-daemon.conf'
>>
$batman_script
echo
' sed -i "s|hosts:.*|hosts: files mdns4_minimal dns mdns4 mdns|g" /etc/nsswitch.conf'
>>
$batman_script
echo
' if ! grep -q "avahi-daemon" /etc/crontab; then'
>>
$batman_script
echo
' if [ -f /bin/systemctl ]; then'
>>
$batman_script
echo
" echo '* * * * * root systemctl restart avahi-daemon > /dev/null' >> /etc/crontab"
>>
$batman_script
echo
' else'
>>
$batman_script
echo
" echo '* * * * * root service avahi-daemon restart > /dev/null' >> /etc/crontab"
>>
$batman_script
echo
' fi'
>>
$batman_script
echo
' if [ -f /bin/systemctl ]; then'
>>
$batman_script
echo
' systemctl restart avahi-daemon'
>>
$batman_script
echo
' else'
>>
$batman_script
echo
' service avahi-daemon restart'
>>
$batman_script
echo
' fi'
>>
$batman_script
echo
'fi'
>>
$batman_script
echo
''
>>
$batman_script
...
...
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