18 |
iface="${cfg_network_iface}" |
iface="${cfg_network_iface}" |
19 |
fi |
fi |
20 |
|
|
21 |
|
# never ever overwrite network settings, if NETWORKING is unknown |
22 |
|
case ${cfg_network_networking} in |
23 |
|
static|STATIC|dhcp|DHCP) ;; |
24 |
|
*) |
25 |
|
echo -e "${COLRED}Received network-settings are not complete, aborting ...${COLDEFAULT}" |
26 |
|
return 1 |
27 |
|
;; |
28 |
|
esac |
29 |
|
|
30 |
# remove all old nics and modules configs |
# remove all old nics and modules configs |
31 |
find /etc/conf.d -type f -name 'net.*' | xargs rm |
find /etc/conf.d -type f -name 'net.*' | xargs rm |
32 |
find /etc/modprobe.d -type f -name 'net.*' | xargs rm |
find /etc/modprobe.d -type f -name 'net.*' | xargs rm |