2010-04-20 12:58:29 +00:00
|
|
|
description "Special MAC Address Setup based on /etc/mactab*"
|
|
|
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
|
|
|
version 1.0
|
|
|
|
emits none special
|
2008-05-03 17:03:02 +00:00
|
|
|
|
2010-04-20 12:58:29 +00:00
|
|
|
start on ( runlevel [2345] and (stopped mountfs))
|
2008-05-03 17:03:02 +00:00
|
|
|
|
2010-04-20 12:58:29 +00:00
|
|
|
console output
|
2008-05-03 17:03:02 +00:00
|
|
|
|
|
|
|
script
|
|
|
|
if ls /etc/mactab* &>/dev/null; then
|
2010-04-20 12:58:29 +00:00
|
|
|
echo "Setting up mac adresses"
|
2008-05-03 17:03:02 +00:00
|
|
|
for maccfg in /etc/mactab*; do
|
|
|
|
nameif -c $maccfg >/dev/null
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
end script
|