mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
busybox:
- add init script for setting up loopback device - move wait_on_network function from connman to busybox
This commit is contained in:
parent
a627b86a26
commit
3048436b9a
@ -10,7 +10,7 @@
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
wait_for_network () {
|
||||
while [ ! -f /var/run/connman/udhcpc.*.pid ]; do
|
||||
while [ ! -f /var/run/network ]; do
|
||||
sleep 1
|
||||
done
|
||||
}
|
12
packages/sysutils/busybox/init.d/03_network
Executable file
12
packages/sysutils/busybox/init.d/03_network
Executable file
@ -0,0 +1,12 @@
|
||||
# start Connection Manager
|
||||
#
|
||||
# runlevels: openelec, text, debug
|
||||
|
||||
(
|
||||
progress "Setting up Loopback device"
|
||||
|
||||
ifup -a
|
||||
|
||||
mkdir -p /var/run
|
||||
touch /var/run/network
|
||||
)&
|
@ -40,4 +40,4 @@ ROOT_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw $ROOT_PASSWORD`"
|
||||
cp $PKG_DIR/scripts/acpi_powerbtn $INSTALL/etc/acpi/PWRF/00000080
|
||||
|
||||
mkdir -p $INSTALL/etc/network
|
||||
ln -sf /storage/.config/interfaces $INSTALL/etc/network/interfaces
|
||||
cp $PKG_DIR/config/interfaces $INSTALL/etc/network
|
||||
|
Loading…
x
Reference in New Issue
Block a user