--- alx-src/branches/alxconf-060/functions/config_network.sh 2013/05/13 11:12:37 4834 +++ alx-src/branches/alxconf-060/functions/config_network.sh 2013/05/13 11:13:20 4835 @@ -18,6 +18,15 @@ iface="${cfg_network_iface}" fi + # never ever overwrite network settings, if NETWORKING is unknown + case ${cfg_network_networking} in + static|STATIC|dhcp|DHCP) ;; + *) + echo -e "${COLRED}Received network-settings are not complete, aborting ...${COLDEFAULT}" + return 1 + ;; + esac + # remove all old nics and modules configs find /etc/conf.d -type f -name 'net.*' | xargs rm find /etc/modprobe.d -type f -name 'net.*' | xargs rm