update

sudo mount / -o remount,rw
sudo chmod +x safemode.py
sudo cp safemode.sh /etc/init.d/
sudo chmod +x /etc/init.d/safemode.sh
sudo update-rc.d safemode.sh defaults
sudo /etc/init.d/safemode.sh start