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:
Holger Hans Peter Freyther 2015-02-13 19:15:45 +01:00
parent 3094ddf651
commit 3f2d2d3381
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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."