Skip to content

Commit

Permalink
Merge pull request #48 from Florin65/dhcpcd
Browse files Browse the repository at this point in the history
dhcpcd: add the needed dhcpcd@.service file for systemd.
  • Loading branch information
sofar committed Jul 30, 2012
2 parents 7b76a54 + bb6a270 commit ac9396a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/dhcpcd/BUILD
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(

export PREFIX=/usr &&
export PREFIX=/usr &&
export SYSCONFDIR=/etc &&
export CSTD=gnu99 &&
export CSTD=gnu99 &&

default_build

Expand Down
13 changes: 13 additions & 0 deletions net/dhcpcd/systemd.d/dhcpcd@.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=dhcpcd on %I
Wants=network.target
Before=network.target

[Service]
Type=forking
PIDFile=/run/dhcpcd-%I.pid
ExecStart=/usr/sbin/dhcpcd -A -q -w %I
ExecStop=/usr/sbin/dhcpcd -k %I

[Install]
Alias=multi-user.target.wants/dhcpcd@eth0.service

0 comments on commit ac9396a

Please sign in to comment.