Revision 9756c9a3 util/install.sh

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

Also available in: Unified diff