diff options
| author | Sebastian | 2013-12-13 17:49:42 +0100 |
|---|---|---|
| committer | Sebastian | 2013-12-13 17:49:42 +0100 |
| commit | 71ea695a1ce93458f0b56820d000c568d858c546 (patch) | |
| tree | 5707e076a11bd8252189eb067b990d4433fc0193 | |
| parent | [cups] added ghostscript-cups (diff) | |
| download | tm-scripts-71ea695a1ce93458f0b56820d000c568d858c546.tar.gz tm-scripts-71ea695a1ce93458f0b56820d000c568d858c546.tar.xz tm-scripts-71ea695a1ce93458f0b56820d000c568d858c546.zip | |
add linkstate check; add dmesg to stage32 (for debug)
| -rwxr-xr-x | remote/rootfs/rootfs-stage31/data/bin/setup_network | 9 | ||||
| -rw-r--r-- | remote/rootfs/rootfs-stage32/rootfs-stage32.conf | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/remote/rootfs/rootfs-stage31/data/bin/setup_network b/remote/rootfs/rootfs-stage31/data/bin/setup_network index 06b46200..f7746c71 100755 --- a/remote/rootfs/rootfs-stage31/data/bin/setup_network +++ b/remote/rootfs/rootfs-stage31/data/bin/setup_network @@ -66,6 +66,15 @@ for LINE in $IP_OUT; do # youdev echo "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"$IFMAC\", ATTR{dev_id}==\"0x0\", ATTR{type}==\"1\", KERNEL==\"eth*\", NAME=\"$IFACE\"" >> "${FUTURE_ROOT}/etc/udev/rules.d/70-net-boot-nic-name.rules" # continue... + echo -n "Wait for interface $BRIDGE: " + while true; do + # check linkstate + [ "x$(cat /sys/class/net/${BRIDGE}/operstate)" == "xup" ] && break + # else + echo -n "." + sleep 1 + done + echo "." IFACE="" done diff --git a/remote/rootfs/rootfs-stage32/rootfs-stage32.conf b/remote/rootfs/rootfs-stage32/rootfs-stage32.conf index b59a8237..f9d0ebae 100644 --- a/remote/rootfs/rootfs-stage32/rootfs-stage32.conf +++ b/remote/rootfs/rootfs-stage32/rootfs-stage32.conf @@ -3,6 +3,7 @@ REQUIRED_MODULES=" " REQUIRED_BINARIES=" bash + dmesg curl less agetty |
