[ethercode.sh] Bugfix + retrait des parenthèses useless
This commit is contained in:
parent
7affa998c6
commit
55ea4b34d7
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ TEMPFILE=`tempfile`
|
|||
# on évite de casser le dépôt darcs
|
||||
umask 002
|
||||
wget -o /dev/null -O $TEMPFILE http://standards.ieee.org/regauth/oui/oui.txt \
|
||||
&& awk -F '[\t ]*(hex)[ \t]*' '(/(hex)/) {gsub("-",":",$1) ; print $1" "$2}' < $TEMPFILE > /usr/scripts/gestion/ethercodes.dat \
|
||||
&& awk -F '[\t ]*(hex)[ \t]*' '(/(hex)/) {gsub("-",":",$1) ; {gsub("^ *", "", $1)}; {gsub("\\(", "", $1)}; {gsub("\\)", "", $2)}; print $1" "$2}' < $TEMPFILE > /usr/scripts/gestion/ethercodes.dat \
|
||||
&& cd /usr/scripts/gestion \
|
||||
&& git commit --author="Cron Daemon <root@crans.org>" -m "[ethercodes.dat] Mise à jour du fichier vendeur" ethercodes.dat > /dev/null \
|
||||
&& git push > /dev/null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue