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
3c6750ce
Commit
3c6750ce
authored
6 years ago
by
rubo77
Browse files
Options
Downloads
Patches
Plain Diff
Be more precise to only select radio{digit}
parent
b65f0a94
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
gluon-ssid-changer/shsrc/ssid-changer.sh
+3
-2
3 additions, 2 deletions
gluon-ssid-changer/shsrc/ssid-changer.sh
with
3 additions
and
2 deletions
gluon-ssid-changer/shsrc/ssid-changer.sh
+
3
−
2
View file @
3c6750ce
...
...
@@ -57,8 +57,9 @@ fi
OFFLINE_SSID
=
"
$PREFIX$SUFFIX
"
# if for whatever reason ONLINE_SSID is NULL
ONLINE_SSIDs
=
"
$(
uci show |
grep
wireless.client_radio |
grep
ssid |
awk
-F
'='
'{print $2}'
|
sed
"s/
\\\'
/PLATZHALTER/g"
|
tr
\'
\~
|
sed
"s/PLATZHALTER/
\\\'
/g"
)
"
# get all SSIDs (replace \' with TICX and back to keep a possible tic in an SSID)
ONLINE_SSIDs
=
"
$(
uci show |
grep
wireless.client_radio[0-9]
\.
|
grep
ssid |
awk
-F
'='
'{print $2}'
|
sed
"s/
\\\'
/TICX/g"
|
tr
\'
\~
|
sed
"s/TICX/
\\\'
/g"
)
"
# if for whatever reason ONLINE_SSIDs is NULL:
:
${
ONLINE_SSIDs
:
=
"~FREIFUNK~"
}
# temp file to count the offline incidents during switch_timeframe
...
...
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