aboutsummaryrefslogtreecommitdiffstats
path: root/main/dhcpcd/dhcpcd.initd
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-04-03 16:18:35 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-04-03 16:41:45 +0200
commit4ac514b4b250411f76bb66ef9d79a9d2e7f14225 (patch)
treef1ca4b4df160ff7d29589a013a41e36c4ec80000 /main/dhcpcd/dhcpcd.initd
parent767d22bd00c7aac4d3b1b48a4ce864b65bdccfc2 (diff)
downloadaports-4ac514b4b250411f76bb66ef9d79a9d2e7f14225.tar.bz2
aports-4ac514b4b250411f76bb66ef9d79a9d2e7f14225.tar.xz
main/dhcpcd: improve runscript, fix code-style
Diffstat (limited to 'main/dhcpcd/dhcpcd.initd')
-rw-r--r--main/dhcpcd/dhcpcd.initd11
1 files changed, 4 insertions, 7 deletions
diff --git a/main/dhcpcd/dhcpcd.initd b/main/dhcpcd/dhcpcd.initd
index d3f4d76b4c..0539b25daf 100644
--- a/main/dhcpcd/dhcpcd.initd
+++ b/main/dhcpcd/dhcpcd.initd
@@ -1,14 +1,11 @@
#!/sbin/openrc-run
-# Copyright 2007-2008 Roy Marples <roy@marples.name>
-# All rights reserved. Released under the 2-clause BSD license.
-command=/sbin/dhcpcd
-pidfile=/var/run/dhcpcd.pid
-command_args=-q
name="DHCP Client Daemon"
+command="/sbin/dhcpcd"
+pidfile="/run/dhcpcd.pid"
+command_args="-q ${command_args:-}"
-depend()
-{
+depend() {
provide net
need localmount
use logger network