aboutsummaryrefslogtreecommitdiff
path: root/net/dhcpcd/files/dhcpcd.init
blob: 2fad41dd46560a7678f13ce044bb19aa9c47e4e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh /etc/rc.common
#
# Copyright (C) 2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

START=30
STOP=85
USE_PROCD=1

start_service()
{
	procd_open_instance
	procd_set_param command /sbin/dhcpcd -B
	procd_set_param respawn
	procd_close_instance
}

reload_service()
{
	/sbin/dhcpcd -n
}