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
c4365730
Commit
c4365730
authored
8 years ago
by
fuzzle
Browse files
Options
Downloads
Patches
Plain Diff
reduce logging if nothing worthy to report
parent
5faf397c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
files/lib/gluon/ssid-changer/emergency.sh
+1
-1
1 addition, 1 deletion
files/lib/gluon/ssid-changer/emergency.sh
with
1 addition
and
1 deletion
files/lib/gluon/ssid-changer/emergency.sh
+
1
−
1
View file @
c4365730
...
@@ -18,7 +18,7 @@ echo 950 > /proc/$(pgrep /usr/sbin/batadv-vis)/oom_score_adj # batvis
...
@@ -18,7 +18,7 @@ echo 950 > /proc/$(pgrep /usr/sbin/batadv-vis)/oom_score_adj # batvis
# if we see bat GW just exit
# if we see bat GW just exit
netz
=
$(
batctl gwl
-H
|grep
-v
"gateways in range"
|wc
-l
)
netz
=
$(
batctl gwl
-H
|grep
-v
"gateways in range"
|wc
-l
)
if
[
$netz
-ne
0
]
;
then
if
[
$netz
-ne
0
]
;
then
echo
"
$0
found GW in network, exiting"
|logger
echo
"
$0
found GW in network, exiting"
echo
0
>
/tmp/emergency
echo
0
>
/tmp/emergency
exit
0
exit
0
fi
fi
...
...
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