mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	-Auto-enable ipv6 in esxi
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7143 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -2908,6 +2908,10 @@ sub  makecustomizedmod {
 | 
			
		||||
        print $shadow "$_:*:$dayssince1970:0:99999:7:::\n";
 | 
			
		||||
    }
 | 
			
		||||
    close($shadow);
 | 
			
		||||
    if (-e "$::XCATROOT/share/xcat/netboot/esxi/38.xcat-enableipv6") {
 | 
			
		||||
        mkpath($tempdir."/etc/vmware/init/init.d");
 | 
			
		||||
        copy( "$::XCATROOT/share/xcat/netboot/esxi/38.xcat-enableipv6",$tempdir."/etc/vmware/init/init.d/38.xcat-enableipv6");
 | 
			
		||||
    }
 | 
			
		||||
    if (-e "$::XCATROOT/share/xcat/netboot/esxi/47.xcat-networking") {
 | 
			
		||||
        mkpath($tempdir."/etc/vmware/init/init.d");
 | 
			
		||||
        copy( "$::XCATROOT/share/xcat/netboot/esxi/47.xcat-networking",$tempdir."/etc/vmware/init/init.d/47.xcat-networking");
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										8
									
								
								xCAT-server/share/xcat/netboot/esxi/38.xcat-enableipv6
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								xCAT-server/share/xcat/netboot/esxi/38.xcat-enableipv6
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
retval=${SUCCESS}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Exec esxcfg-advcfg -S 1 -U IPv6ConfigSet
 | 
			
		||||
Exec esxcfg-module -s "ipv6=1" tcpip3
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user