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 2015 by niro, Mon May 9 16:02:37 2011 UTC revision 2016 by niro, Mon May 9 16:13:58 2011 UTC
# Line 138  config_networking() Line 138  config_networking()
138   echo "nameserver ${ALX_DNS}" > /etc/resolv.conf   echo "nameserver ${ALX_DNS}" > /etc/resolv.conf
139   fi   fi
140    
  # setup smb.conf (little sed magic:)  
  # first get smb version !  
  local smbconf  
  [[ $(smbd --version | cut -d' ' -f2) > 2.999 ]] && smbconf=smb3.conf || smbconf=smb.conf  
   
  cat ${ALX_SKELETONS}/samba/${smbconf} > /etc/samba/smb.conf  
  sed -i -e "s:\(workgroup = \).*:\1${ALX_DOMAIN}:" /etc/samba/smb.conf  
   
141   # wireless extensions   # wireless extensions
142   local value   local value
143   local var   local var

Legend:
Removed from v.2015  
changed lines
  Added in v.2016