From bb54dec933cc01eb4885b2613bf288bea6379eb8 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Sat, 12 Jan 2013 04:44:27 +0100 Subject: [PATCH] =?UTF-8?q?[ethercodes.sh]=20On=20appelle=20un=20script=20?= =?UTF-8?q?dans=20la=20crontab=20et=20on=20fait=20attention=20=C3=A0=20l'u?= =?UTF-8?q?mask?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ignore-this: 301f436cd8d6224a85d68c5b028d3e7e darcs-hash:20130112034427-2c9c1-18a8f1f021e4a03ac33c87dd4ecea2e3e5d2811a.gz --- {impression => utils}/ethercodes.sh | 2 ++ 1 file changed, 2 insertions(+) rename {impression => utils}/ethercodes.sh (94%) diff --git a/impression/ethercodes.sh b/utils/ethercodes.sh similarity index 94% rename from impression/ethercodes.sh rename to utils/ethercodes.sh index 0e4a573e..a1356d8b 100755 --- a/impression/ethercodes.sh +++ b/utils/ethercodes.sh @@ -4,6 +4,8 @@ # Avant la comande était entièrement dans la crontab, dans un script ça avait l'air mieux... 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 \