I wrote a patch for /etc/init.d/ssh which make scrpit waiting for a eth0
interface:

#My patch
check_for_eth() {
   eth=0
   while [ $eth -eq 0 ] 
   do  
       if [ `ifconfig | grep -c addr:192.168.1.66` -eq 0  ]
           then 
               sleep 10
           else
               eth=1
       fi  
   done
}


After applying it I found that the system froze during start. I checked 
/etc/network/interfaces and figured out that eth0 hadn't been set in the file!!!

After adding eth0 (with patch in /etc/init.d/ssh) system start fine

Current /etc/network/interfaces is very standard:

auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp

-- 
sshd doesn't start properly
https://bugs.launchpad.net/bugs/241796
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to