- add init script for setting up loopback device
- move wait_on_network function from connman to busybox
This commit is contained in:
Stephan Raue 2010-01-04 04:00:36 +01:00
parent a627b86a26
commit 3048436b9a
3 changed files with 14 additions and 2 deletions

View File

@ -10,7 +10,7 @@
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
wait_for_network () { wait_for_network () {
while [ ! -f /var/run/connman/udhcpc.*.pid ]; do while [ ! -f /var/run/network ]; do
sleep 1 sleep 1
done done
} }

View 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
)&

View File

@ -40,4 +40,4 @@ ROOT_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw $ROOT_PASSWORD`"
cp $PKG_DIR/scripts/acpi_powerbtn $INSTALL/etc/acpi/PWRF/00000080 cp $PKG_DIR/scripts/acpi_powerbtn $INSTALL/etc/acpi/PWRF/00000080
mkdir -p $INSTALL/etc/network mkdir -p $INSTALL/etc/network
ln -sf /storage/.config/interfaces $INSTALL/etc/network/interfaces cp $PKG_DIR/config/interfaces $INSTALL/etc/network