Magellan Linux

Diff of /alx-src/trunk/alxconfig-ng/functions/config_network.sh

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

revision 302 by niro, Thu Aug 18 02:50:47 2005 UTC revision 303 by niro, Sun Aug 28 19:28:58 2005 UTC
# Line 1  Line 1 
1  # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_network.sh,v 1.9 2005-08-18 02:50:47 niro Exp $  # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_network.sh,v 1.10 2005-08-28 19:28:58 niro Exp $
2  # configures networkin on the host via mysql db settings  # configures networkin on the host via mysql db settings
3    
4  get_network_settings()  get_network_settings()
# Line 111  config_networking() Line 111  config_networking()
111   # setup smb.conf (little sed magic:)   # setup smb.conf (little sed magic:)
112   # first get smb version !   # first get smb version !
113   local smbconf   local smbconf
114   [[ $(smbd --version | cut -d' ' -f2) > 2 ]] && smbconf=smb3.conf || smbconf=smb.conf   [[ $(smbd --version | cut -d' ' -f2) > 2.999 ]] && smbconf=smb3.conf || smbconf=smb.conf
115    
116   cat ${ALX_SKELETONS}/samba/${smbconf} > /etc/samba/smb.conf   cat ${ALX_SKELETONS}/samba/${smbconf} > /etc/samba/smb.conf
117   sed -i -e "s:\(workgroup = \).*:\1${ALX_DOMAIN}:" /etc/samba/smb.conf   sed -i -e "s:\(workgroup = \).*:\1${ALX_DOMAIN}:" /etc/samba/smb.conf

Legend:
Removed from v.302  
changed lines
  Added in v.303