diff --git a/utils/ethercodes.sh b/utils/ethercodes.sh index a5ef2bc4..26b87a9d 100755 --- a/utils/ethercodes.sh +++ b/utils/ethercodes.sh @@ -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 " -m "[ethercodes.dat] Mise à jour du fichier vendeur" ethercodes.dat > /dev/null \ && git push > /dev/null