mirror of
https://github.com/javalsai/lidm.git
synced 2025-07-03 06:15:03 +02:00
detects if systemd is there
This commit is contained in:
parent
cb853cb379
commit
a15b49ec24
10
Makefile
10
Makefile
@ -24,3 +24,13 @@ lidm: $(OBJ)
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f $(ODIR)/*.o *- li $(INCDIR)/*-
|
||||
|
||||
# Copy lidm to /usr/bin
|
||||
install: lidm
|
||||
install -m 755 lidm /usr/bin
|
||||
if command -v systemctl &> /dev/null; then \
|
||||
echo "Systemd exists, copying service file"; \
|
||||
cp assets/li.service /etc/systemd/system/; \
|
||||
else \
|
||||
echo "No systemd"; \
|
||||
fi
|
||||
|
@ -6,7 +6,7 @@ Conflicts=getty@tty3.service
|
||||
|
||||
[Service]
|
||||
Type=idle
|
||||
ExecStart=$HOME/git/lidm/assets/li.service
|
||||
ExecStart=/usr/bin/lidm
|
||||
StandardError=journal
|
||||
StandardInput=tty
|
||||
TTYPath=/dev/tty3
|
||||
|
Loading…
x
Reference in New Issue
Block a user