[ethercodes.sh] On appelle un script dans la crontab et on fait attention à l'umask

Ignore-this: 301f436cd8d6224a85d68c5b028d3e7e

darcs-hash:20130112034427-2c9c1-18a8f1f021e4a03ac33c87dd4ecea2e3e5d2811a.gz
This commit is contained in:
Vincent Le Gallic 2013-01-12 04:44:27 +01:00
parent 73bd82682e
commit bb54dec933

View file

@ -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 \