Merge branch 'master' of http://github.com/alanbjohnston/CubeSatSim
commit
f4418f144b
@ -1,17 +1,19 @@
|
|||||||
cd systemd
|
To make the CubeSat Simulator transmit automatically on boot, follow these steps, which were derived from https://www.mauras.ch/systemd-run-it-last.html
|
||||||
|
|
||||||
|
On the Pi, if you are not already in this directory:
|
||||||
|
|
||||||
|
cd ~/CubeSatSim/systemd
|
||||||
|
|
||||||
sudo cp custom.target /etc/systemd/system/custom.target
|
sudo cp custom.target /etc/systemd/system/custom.target
|
||||||
|
|
||||||
sudo mkdir /etc/systemd/system/custom.target.wants
|
sudo mkdir /etc/systemd/system/custom.target.wants
|
||||||
|
|
||||||
sudo cp new.service /etc/systemd/system/custom.target.wants/new.service
|
|
||||||
sudo cp cubesatsim.service /etc/systemd/system/custom.target.wants/cubesatsim.service
|
sudo cp cubesatsim.service /etc/systemd/system/custom.target.wants/cubesatsim.service
|
||||||
|
|
||||||
sudo systemctl list-units --type target --all
|
|
||||||
|
|
||||||
sudo systemctl isolate custom.target
|
sudo systemctl isolate custom.target
|
||||||
|
|
||||||
sudo ln -sf /etc/systemd/system/custom.target /etc/systemd/system/default.target
|
sudo ln -sf /etc/systemd/system/custom.target /etc/systemd/system/default.target
|
||||||
|
|
||||||
sudo reboot now
|
Now after a reboot (sudo reboot now), the demo.sh script will run automatically, and the console will log to ~/CubeSatSim/log.txt To see it:
|
||||||
|
|
||||||
|
tail ~/CubeSatSim/log.txt
|
||||||
|
|||||||
Loading…
Reference in new issue