From 33afd0812247cdf40d5365c5eda145c955e8a77a Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 21 Jan 2017 18:33:03 +0100 Subject: [PATCH] Copied .bashrc from pi to gain interactivity --- clone/clone | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;