Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Grenoble
Eole-Wol
Commits
bf41a157
Unverified
Commit
bf41a157
authored
Aug 05, 2019
by
David Beniamine
Browse files
Handle hosts without ips
parent
44542a92
Changes
1
Hide whitespace changes
Inline
Side-by-side
wol/scripts/wakeonlanservice.sh
View file @
bf41a157
...
...
@@ -52,6 +52,10 @@ do
do
mac
=
$(
echo
$line
|
cut
-d
' '
-f
2
)
IPS
=
$(
getip
$mac
|
sed
-e
's/ /,/g'
)
if
[
-z
"
$IPS
"
]
then
IPS
=
"NA"
fi
echo
"
$line
$IPS
"
>>
$hostfile
-
$$
done
<
$hostfile
stdbuf
-oL
cat
$hostfile
-
$$
| netcat
$host
$port
...
...
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