init-ifupdown: Make sure to create the /run/network directory
For systemd and the Debian ifupdown application we need to have the /run/network directory. The debian init file is creating it on the fly and we should do the same for now.
This commit is contained in:
parent
3094ddf651
commit
3f2d2d3381
|
@ -1,6 +1,6 @@
|
|||
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
||||
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/netbase-${PV}:${SYSMOCOM}/netbase:"
|
||||
PRINC = "6"
|
||||
PRINC = "7"
|
||||
|
||||
# systemd does not look at /etc/rcS.d for the script. Make sure
|
||||
# there is a symlink available
|
||||
|
|
|
@ -58,6 +58,7 @@ check_network_swap() {
|
|||
case "$1" in
|
||||
start)
|
||||
echo -n "Configuring network interfaces... "
|
||||
mkdir /run/network || true
|
||||
sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
|
||||
ifup -a
|
||||
echo "done."
|
||||
|
|
Loading…
Reference in New Issue