Upgrading Raspbian from Wheezy to Jessie

Here's a summary of the commands I did to upgrade Raspbian from Wheezy to Jessie:

$ sudo apt-get update
$ sudo apt-get dist-upgrade
$ sudo reboot
$ sudo sed -i /deb/s/wheezy/jessie/g /etc/apt/sources.list
$ sudo sed -i /deb/s/wheezy/jessie/g /etc/apt/sources.list.d/*.list
$ sudo apt-get dist-upgrade
$ sudo reboot