Files
binary-repo/sys/base/busybox/files/udhcpc.openrc
T
2023-01-16 14:30:59 +00:00

30 lines
445 B
Plaintext
Executable File

#!/sbin/openrc-run
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
NAME="udhcpc"
depend()
{
need localmount
keyword -vserver -lxc
}
start()
{
ebegin "Starting busybox networking"
for DEVICE in /sys/class/net/* ; do
ip link set ${DEVICE##*/} up
[ ${DEVICE##*/} != lo ] && udhcpc -b -i ${DEVICE##*/}
done
return 0
}
stop()
{
return 0
}
# vim:ts=4