dhcpcd: added a per device systemd service.

This commit is contained in:
Juan RP 2012-01-30 12:45:51 +01:00
parent 46f1e73628
commit 298c2f03d7
2 changed files with 14 additions and 3 deletions

View File

@ -0,0 +1,11 @@
[Unit]
Description=Lightweight DHCP client daemon on %I
Wants=network.target
Before=network.target
[Service]
ExecStart=/sbin/dhcpcd -q -B %I
ExecStop=/sbin/dhcpcd -k %I
[Install]
Alias=multi-user.target.wants/dhcpcd@eth0.service

View File

@ -1,7 +1,7 @@
# Template file for 'dhcpcd'
pkgname=dhcpcd
version=5.2.12
revision=2
revision=3
distfiles="http://roy.marples.name/downloads/dhcpcd/dhcpcd-$version.tar.bz2"
build_style=configure
configure_args="--libexecdir=/lib/dhcpcd"
@ -20,8 +20,8 @@ Add_dependency build ntp
conf_files="/etc/dhcpcd.conf"
post_install()
{
post_install() {
chmod 755 ${DESTDIR}/sbin/dhcpcd
vinstall ${FILESDIR}/dhcpcd.service 644 lib/systemd/system
vinstall ${FILESDIR}/dhcpcd@.service 644 lib/systemd/system
}