Skip to content

Commit 0146731

Browse files
authored
fix(deb): support installation with no systemd
1 parent ce29f76 commit 0146731

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

debian/router/DEBIAN/postinst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/sh
22

3-
systemctl daemon-reload
43
systemctl enable arduino-router
5-
systemctl start arduino-router
4+
5+
if [ -d /run/systemd/system ]; then
6+
systemctl daemon-reload
7+
systemctl start arduino-router
8+
fi

debian/router/DEBIAN/postrm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
#!/bin/sh
22

3-
systemctl daemon-reload
3+
if [ -d /run/systemd/system ]; then
4+
systemctl daemon-reload
5+
fi

debian/router/DEBIAN/prerm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/sh
22

33
systemctl disable arduino-router
4-
systemctl stop arduino-router
4+
5+
if [ -d /run/systemd/system ]; then
6+
systemctl stop arduino-router
7+
fi

0 commit comments

Comments
 (0)