dhcpcd: update to 5.0.1, switch to OpenRC.
--HG-- extra : convert_revision : c04fe506ea2bf5df334fadc52f796ae3ea18fdcc
This commit is contained in:
parent
7217f85369
commit
d406796eac
5 changed files with 68 additions and 20 deletions
|
@ -1,16 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# PROVIDE: dhcpcd
|
||||
# REQUIRE: network
|
||||
# BEFORE: NETWORKING
|
||||
# KEYWORD: shutdown
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name=dhcpcd
|
||||
rcvar=$name
|
||||
command=/sbin/$name
|
||||
pidfile=/var/run/${name}.pid
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
24
templates/dhcpcd/files/dhcpcd.rc
Normal file
24
templates/dhcpcd/files/dhcpcd.rc
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/sbin/runscript
|
||||
#
|
||||
#
|
||||
|
||||
command=/sbin/dhcpcd
|
||||
command_args=-q
|
||||
pidfile=/var/run/dhcpcd.pid
|
||||
name="DHCP Client Daemon"
|
||||
|
||||
depend()
|
||||
{
|
||||
provide net
|
||||
need localmount
|
||||
use logger
|
||||
after bootmisc modules
|
||||
before dns
|
||||
}
|
||||
|
||||
stop_pre()
|
||||
{
|
||||
if yesno $RC_GOINGDOWN; then
|
||||
: ${stopsig:=SIGKILL}
|
||||
fi
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue