Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!bin/bash#
- #this script is an update to automatically fix a crash caused by a missing home folder
- #this part backs up important files
- su
- mkdir /etc/jbackup
- cp .profile /etc/jbackup/.profile_default
- cp .bashrc /etc/jbackup/.bashrc_default
- #this part adds the fix to bash.bashrc
- echo'
- if -f /home/$USER/.profile
- then echo good
- else mkdir ~ && mkdir ~/Desktop && cp /etc/jbackup/.profile_default ~/.profile && cp /etc/jbackup/.bashrc_default ~/.bashrc' >> /etc/bash.bashrc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement