#!/bin/sh
# PROVIDE: network NETWORKING
# REQUIRE: DAEMON
# BEFORE: LOGIN

. /etc/rc.subr

name=network
command=/sbin/dhcpcd
command_args="-4 -b -q -c /usr/libexec/mouse-dhcpcd-hook"
start_precmd=network_prestart
stop_postcmd=network_poststop

network_prestart()
{
	rm -f /run/mouse-network.ready
}

network_poststop()
{
	rm -f /run/mouse-network.ready
}

run_rc_command "$1"
