diff --git a/clone/clone b/clone/clone index 269116f..91cef66 100755 --- a/clone/clone +++ b/clone/clone @@ -138,6 +138,11 @@ step5(){ # remove temporary file #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"; step6; @@ -211,7 +216,6 @@ step7(){ # (8) Set up automatic ssh server at 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/sats-user/.bashrc > /dev/null; sudo chown 666:666 /mnt/home/sats-user/.bashrc;