You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
340 B
Bash
14 lines
340 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2018 devolo AG
|
|
|
|
START=15
|
|
|
|
boot() {
|
|
# set baptized ethernet mac addresses, bapt. always has precedence over other means
|
|
# if nothing was baptized do nothing
|
|
for i in $(seq 0 1); do
|
|
local mac=$(uci_get_state delos.baptization.MacAddress$i)
|
|
[ -n "$mac" ] && ifconfig eth$i hw ether $mac
|
|
done
|
|
}
|