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
a59da4d8
Unverified
Commit
a59da4d8
authored
Oct 29, 2019
by
David Beniamine
Browse files
Set dates
parent
f567ced5
Changes
1
Hide whitespace changes
Inline
Side-by-side
regenerate_hosts.sh
View file @
a59da4d8
...
...
@@ -2,7 +2,7 @@
BASE_MACS
=
"6c:4b:90 a4:1f:72 78:45:c4 64:00:6a b0:83:fe d4:be:d9 00:23:24"
arg
=
"c8:1f:66"
registry
=
"/etc/registry/hosts"
cp
$registry
$registry
.bak
cp
$registry
"
$registry
_
$(
date
'+%Y%m%d_%H%M'
)
"
for
mac
in
$BASE_MACS
do
arg
=
"
$arg
\|
$mac
"
...
...
@@ -21,6 +21,6 @@ do
done
for
mac
in
$MACS
do
echo
"
20191025
$mac
inconnuAutoGen"
>>
$registry
echo
"
$(
date
'+%Y%m%d'
)
$mac
inconnuAutoGen"
>>
$registry
done
systemctl restart registry wakeonlan
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