Skip to content

Commit

Permalink
Changed creation of aliases and activation of ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
HLXEasy committed Sep 2, 2018
1 parent 67fea09 commit 2008a5b
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions stage3/01-install-spectrecoind/00-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,12 @@ rm -rf spectre-rpc-sh-ui/
# - 'wallet-start' to start daemon
# - 'wallet-stop' to stop daemon
# - 'wallet-status' to show daemon status
on_chroot << EOF
echo "alias ui='/home/pi/spectrecoin-rpc-sh-ui/spectre_rpc_ui.sh'" >> /home/pi/.bash_aliases
echo "alias wallet-start='service spectrecoind start'" >> /home/pi/.bash_aliases
echo "alias wallet-stop='service spectrecoind stop'" >> /home/pi/.bash_aliases
echo "alias wallet-status='service spectrecoind status'" >> /home/pi/.bash_aliases
chown pi:pi /home/pi/.bash_aliases
EOF
echo "alias ui='/home/pi/spectrecoin-rpc-sh-ui/spectre_rpc_ui.sh'" > bash_aliases
echo "alias wallet-start='service spectrecoind start'" >> bash_aliases
echo "alias wallet-stop='service spectrecoind stop'" >> bash_aliases
echo "alias wallet-status='service spectrecoind status'" >> bash_aliases
install -v -o 1000 -g 1000 -m 644 bash_aliases "${ROOTFS_DIR}/home/pi/.bash_aliases"
rm -f bash_aliases



Expand All @@ -79,3 +78,12 @@ EOF
on_chroot << EOF
dphys-swapfile swapoff && dphys-swapfile uninstall && systemctl disable dphys-swapfile
EOF



# ============================================================================
# Activate ssh,
# see https://www.raspberrypi.org/documentation/remote-access/ssh/
touch ssh
install -v ssh "${ROOTFS_DIR}/boot/"
rm -f ssh

0 comments on commit 2008a5b

Please sign in to comment.