Magellan Linux

Diff of /alx-src/branches/alxconf-060/functions/config_network.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4834 by niro, Thu Jul 7 13:20:37 2011 UTC revision 4835 by niro, Mon May 13 11:13:20 2013 UTC
# Line 18  config_networking() Line 18  config_networking()
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

Legend:
Removed from v.4834  
changed lines
  Added in v.4835