Revision 9756c9a3

View differences:

util/install.sh
706 706
    rm -f ~/.ssh/id_rsa* ~/.ssh/known_hosts
707 707
    sudo rm -f ~/.ssh/authorized_keys*
708 708

  
709
    # Remove SSH keys and regenerate on boot
710
    echo 'Removing SSH keys from /etc/ssh/'
711
    sudo rm -f /etc/ssh/*key*
712
    if ! grep mininet /etc/rc.local >& /dev/null; then
713
        sudo sed -i -e "s/exit 0//" /etc/rc.local
714
        echo '
715
# mininet: regenerate ssh keys if we deleted them
716
if ! stat -t /etc/ssh/*key* >/dev/null 2>&1; then
717
    /usr/sbin/dpkg-reconfigure openssh-server
718
fi
719
exit 0
720
' | sudo tee -a /etc/rc.local > /dev/null
721
    fi
722

  
709 723
    # Remove Mininet files
710 724
    #sudo rm -f /lib/modules/python2.5/site-packages/mininet*
711 725
    #sudo rm -f /usr/bin/mnexec
util/vm/install-mininet-vm.sh
43 43
# Install Mininet
44 44
time mininet/util/install.sh
45 45
# Finalize VM
46
time mininet/util/install.sh -tc
46
time mininet/util/install.sh -tcd
47 47
# Ignoring this since NOX classic is deprecated
48 48
#if ! grep NOX_CORE_DIR .bashrc; then
49 49
#  echo "export NOX_CORE_DIR=~/noxcore/build/src/" >> .bashrc

Also available in: Unified diff