2542b9e4852f145b585b2b53e06ab575d7876fb1
3 error
=0 ; trap "error=$((error|1))" ERR
6 # determine predictable network names
7 fields
="ID_NET_NAME_FROM_DATABASE ID_NET_NAME_ONBOARD ID_NET_NAME_SLOT ID_NET_NAME_PATH"
8 for field
in $fields; do
9 name
=$
(udevadm info
/sys
/class
/net
/$NIC1 |
sed -rn "s/^E: $field=(.+)/\1/p")
15 if [[ ! $name ]]; then
16 echo "$0: error: could not find systemd predictable network name. Using $NIC1."
20 if [ $FAI_ACTION != "softupdate" ] && ifclass DHCPC
; then
21 cat > $target/etc
/sysconfig
/network-scripts
/ifcfg-
$NIC1 <<-EOF
37 fcopy
-iv /etc
/sysconfig
/network
/etc
/resolv.conf
/etc
/networks
38 fcopy
-ivr /etc
/sysconfig
/network-scripts