Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
firmware
FFS Gluon Packages
Commits
41d7f879
Commit
41d7f879
authored
May 30, 2017
by
ffs-Monitor
Browse files
checking DNS-Response for correct format to avoid answers for non existent URLs.
parent
b107f65b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ffs-set-segment/files/usr/sbin/ffs-set-segment
View file @
41d7f879
...
...
@@ -14,7 +14,7 @@ fi
NODEID
=
$(
uci get network.bat0.macaddr |
sed
's/://g'
)
PUBKEY
=
$(
/etc/init.d/fastd show_key mesh_vpn |
cut
-c1-12
)
SEGINFO
=
$(
nslookup ffs-
$NODEID
-
$PUBKEY
.segassign.freifunk-stuttgart.de
[
::1]:54 |
tail
-n1
)
SEGINFO
=
$(
nslookup ffs-
$NODEID
-
$PUBKEY
.segassign.freifunk-stuttgart.de
[
::1]:54 |
grep
"2001:2:0:711::"
)
if
[
-z
"
$SEGINFO
"
]
;
then
echo
Node not known
exit
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment