aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-25 12:39:31 +0000
committerRoy Marples <roy@marples.name>2007-04-25 12:39:31 +0000
commitb1d9fd4f6fb8a74c0f49e6cc14f641a94b8be6cb (patch)
treecd84371e33cfaac01836a5ab805cc0df68a619a3 /net
parent00d596fb439d9c3aff6c6d06448b194681333d46 (diff)
Now that dhcpcd-3 is stable on all arches, use it with start-stop-daemon.
Diffstat (limited to 'net')
-rw-r--r--net/dhcpcd.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/dhcpcd.sh b/net/dhcpcd.sh
index f8e81f98..15fdf45c 100644
--- a/net/dhcpcd.sh
+++ b/net/dhcpcd.sh
@@ -38,7 +38,9 @@ dhcpcd_start() {
# Bring up DHCP for this interface
ebegin "Running dhcpcd"
- eval /sbin/dhcpcd "${args}" "${IFACE}"
+ eval start-stop-daemon --start --exec /sbin/dhcpcd \
+ --pidfile /var/run/"dhcpcd-${IFACE}.pid" \
+ -- "${args}" "${IFACE}"
eend $? || return 1
_show_address