[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:
parent
73bd82682e
commit
bb54dec933
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,8 @@
|
||||||
# Avant la comande était entièrement dans la crontab, dans un script ça avait l'air mieux...
|
# Avant la comande était entièrement dans la crontab, dans un script ça avait l'air mieux...
|
||||||
|
|
||||||
TEMPFILE=`tempfile`
|
TEMPFILE=`tempfile`
|
||||||
|
|
||||||
|
# on évite de casser le dépôt darcs
|
||||||
umask 002
|
umask 002
|
||||||
wget -o /dev/null -O $TEMPFILE http://standards.ieee.org/regauth/oui/oui.txt \
|
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) ; print $1" "$2}' < $TEMPFILE > /usr/scripts/gestion/ethercodes.dat \
|
Loading…
Add table
Add a link
Reference in a new issue