Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gluon SSID Changer
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
Gluon SSID Changer
Commits
4b67031b
Commit
4b67031b
authored
8 years ago
by
fuzzle
Browse files
Options
Downloads
Patches
Plain Diff
if no gw is present batctl print a line that no gw is found - we have to take care of this
parent
de582990
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
files/lib/gluon/ssid-changer/emergency.sh
+1
-1
1 addition, 1 deletion
files/lib/gluon/ssid-changer/emergency.sh
files/lib/gluon/ssid-changer/ssid-changer.sh
+1
-1
1 addition, 1 deletion
files/lib/gluon/ssid-changer/ssid-changer.sh
with
2 additions
and
2 deletions
files/lib/gluon/ssid-changer/emergency.sh
+
1
−
1
View file @
4b67031b
...
...
@@ -12,7 +12,7 @@ echo 900 > /proc/$(pgrep ntp)/oom_score_adj # ntp
echo
950
>
/proc/
$(
pgrep /usr/sbin/batadv-vis
)
/oom_score_adj
# batvis
# if we see bat GW just exit
netz
=
$(
batctl gwl
-H
|wc
-l
)
netz
=
$(
batctl gwl
-H
|
grep
-v
"gateways in range"
|
wc
-l
)
if
[
$netz
-ne
0
]
;
then
echo
"
$0
found GW in network, exiting"
|logger
echo
0
>
/tmp/emergency
...
...
This diff is collapsed.
Click to expand it.
files/lib/gluon/ssid-changer/ssid-changer.sh
+
1
−
1
View file @
4b67031b
#!/bin/sh
# maximum simplyfied, no more ttvn rating
check
=
$(
batctl gwl
-H
|wc
-l
)
check
=
$(
batctl gwl
-H
|
grep
-v
"gateways in range"
|
wc
-l
)
name
=
$(
nodename status|tail
-c
21
)
offline
=
"FF_OFFLINE_"
default
=
"freiburg.freifunk.net"
...
...
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