mirror of
https://github.com/Evidlo/remarkable_printer.git
synced 2024-10-20 03:27:37 -04:00
Update Makefile
This commit is contained in:
parent
8ae644293e
commit
00831257a4
5
Makefile
5
Makefile
|
@ -21,7 +21,10 @@ download_prebuilt:
|
|||
.PHONY: install
|
||||
install: printer.arm
|
||||
ssh-add
|
||||
ssh root@$(host) systemctl stop printer 2>&1 >/dev/null
|
||||
if ssh root@$(host) systemctl is-active --quiet printer;
|
||||
then
|
||||
[stop service]
|
||||
fi
|
||||
scp printer.arm root@$(host):
|
||||
scp printer.service root@$(host):/etc/systemd/system
|
||||
ssh root@$(host) 'systemctl daemon-reload && systemctl enable printer && systemctl restart printer'
|
||||
|
|
Loading…
Reference in a new issue