Skip to content
Snippets Groups Projects
Verified Commit a59da4d8 authored by David Beniamine's avatar David Beniamine
Browse files

Set dates

parent f567ced5
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -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" 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" arg="c8:1f:66"
registry="/etc/registry/hosts" registry="/etc/registry/hosts"
cp $registry $registry.bak cp $registry "$registry_$(date '+%Y%m%d_%H%M')"
for mac in $BASE_MACS for mac in $BASE_MACS
do do
arg="$arg\| $mac" arg="$arg\| $mac"
...@@ -21,6 +21,6 @@ do ...@@ -21,6 +21,6 @@ do
done done
for mac in $MACS for mac in $MACS
do do
echo "20191025 $mac inconnuAutoGen" >> $registry echo "$(date '+%Y%m%d') $mac inconnuAutoGen" >> $registry
done done
systemctl restart registry wakeonlan systemctl restart registry wakeonlan
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment