Copied .bashrc from pi to gain interactivity

This commit is contained in:
xdrm-brackets 2017-01-21 18:33:03 +01:00
parent a85826e8cc
commit 33afd08122
1 changed files with 5 additions and 1 deletions

View File

@ -138,6 +138,11 @@ step5(){
# remove temporary file # remove temporary file
#sudo rm /mnt/etc/shadow.tmp; #sudo rm /mnt/etc/shadow.tmp;
echo " (.) Copying pi's .bashrc to sats-user";
sudo cp /mnt/home/pi/.bashrc /mnt/home/sats-user/.bashrc;
sudo chown 666:666 /mnt/home/sats-user/.bashrc;
sudo chmod 544 /mnt/home/sats-user/.bashrc;
echo "<<< done"; echo "<<< done";
step6; step6;
@ -211,7 +216,6 @@ step7(){
# (8) Set up automatic ssh server at start up # # (8) Set up automatic ssh server at start up #
echo " (.) Trigger ssh server on start up" echo " (.) Trigger ssh server on start up"
sudo touch /mnt/home/sats-user/.bashrc;
echo "sudo service ssh restart" | sudo tee -a /mnt/home/pi/.bashrc > /dev/null; echo "sudo service ssh restart" | sudo tee -a /mnt/home/pi/.bashrc > /dev/null;
echo "sudo service ssh restart" | sudo tee -a /mnt/home/sats-user/.bashrc > /dev/null; echo "sudo service ssh restart" | sudo tee -a /mnt/home/sats-user/.bashrc > /dev/null;
sudo chown 666:666 /mnt/home/sats-user/.bashrc; sudo chown 666:666 /mnt/home/sats-user/.bashrc;