Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
0216c2f8
Commit
0216c2f8
authored
Mar 27, 2014
by
Pau Escrich
Browse files
Fix mdns bug which increases the size of the sms send files
parent
c38a288d
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-system/files/etc/init.d/mdns
View file @
0216c2f8
...
...
@@ -176,6 +176,8 @@ publish_my_domains() {
local
ip4
=
"
$(
get_my_ip4
)
"
local
ip6
=
"
$(
get_my_ip6
)
"
[
-f
"
$SMSTMP
"
]
&&
rm
-f
$SMSTMP
[
-z
"
$ip4$ip6
"
]
&&
error
"cannot get ip address"
[
-n
"
$ip4
"
]
&&
{
...
...
@@ -196,8 +198,10 @@ publish_my_domains() {
log
"publishing own external domains:
\n
$ext_domains
"
echo
-e
"
$ext_domains
"
>>
$SMSTMP
echo
-e
"
$ext_domains
"
>>
$HOSTF
cp
-f
$SMSTMP
$SMSF
sed
'/./!d'
-i
$SMSTMP
$HOSTF
[
$(
md5sum
$SMSTMP
$SMSF
|
awk
'{print $1}'
|
uniq
|
wc
-l
)
-gt
1
]
&&
cp
-f
$SMSTMP
$SMSF
}
get_domains
()
{
...
...
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