Added creation of /run/network in the network init script
This commit is contained in:
2
Makefile
2
Makefile
@@ -16,7 +16,7 @@ DESC = This package supplies the base system init scripts for sysvinit
|
|||||||
ARCHIVE := ''
|
ARCHIVE := ''
|
||||||
SRCDIR := $(PWD)/SRC/initscripts
|
SRCDIR := $(PWD)/SRC/initscripts
|
||||||
PATCHDIR := $(PWD)/SRC/patches
|
PATCHDIR := $(PWD)/SRC/patches
|
||||||
VERSION := 0.3sr1
|
VERSION := 0.4sr0
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/snap/Makefile.snaplinux
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,10 @@
|
|||||||
|
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
start)
|
start)
|
||||||
|
# make sure /run/network is available
|
||||||
|
if [ ! -d /run/network ]; then
|
||||||
|
mkdir /run/network
|
||||||
|
fi
|
||||||
# Start all network interfaces
|
# Start all network interfaces
|
||||||
for file in `find /etc/network.d -type f|sort`; do
|
for file in `find /etc/network.d -type f|sort`; do
|
||||||
interface=${file##*/}
|
interface=${file##*/}
|
||||||
|
|||||||
Reference in New Issue
Block a user