diff options
| author | Nathaniel Roach <nroach44@gmail.com> | 2015-01-11 13:31:34 +0800 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-01-11 20:44:52 +0100 |
| commit | f1b07c06fa44fc33efab515a549f62f721315d21 (patch) | |
| tree | 304da3ebc50095bca3ba5dd6d086ef609ee2c245 /package/bandwidthd/bandwidthd.mk | |
| parent | f3b41df5dbe9c9f1fb03efeb1bed967cb780eef7 (diff) | |
| download | buildroot-f1b07c06fa44fc33efab515a549f62f721315d21.tar.gz buildroot-f1b07c06fa44fc33efab515a549f62f721315d21.zip | |
bandwidthd: Add systemd unit file and install it to run at startup.
Signed-off-by: Nathaniel Roach <nroach44@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/bandwidthd/bandwidthd.mk')
| -rw-r--r-- | package/bandwidthd/bandwidthd.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/package/bandwidthd/bandwidthd.mk b/package/bandwidthd/bandwidthd.mk index ca991f9923..2773490428 100644 --- a/package/bandwidthd/bandwidthd.mk +++ b/package/bandwidthd/bandwidthd.mk @@ -31,4 +31,14 @@ else BANDWIDTHD_CONF_OPTS += --with-sqlite-storage=false endif +define BANDWIDTHD_INSTALL_INIT_SYSTEMD + $(INSTALL) -D -m 644 package/bandwidthd/bandwidthd.service \ + $(TARGET_DIR)/usr/lib/systemd/system/bandwidthd.service + + mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants + + ln -sf /usr/lib/systemd/system/bandwidthd.service \ + $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/bandwidthd.service +endef + $(eval $(autotools-package)) |

