summaryrefslogtreecommitdiffstats
path: root/remote/rootfs
diff options
context:
space:
mode:
authorSimon Rettberg2013-06-24 18:43:12 +0200
committerSimon Rettberg2013-06-24 18:43:12 +0200
commit8b49197847b16ac9a0b9b0a2edb91241ce21ac82 (patch)
treeac74174fceaee0ba10fa1aeb4fb0f212ddfebf48 /remote/rootfs
parentDon't fail when copying firmware modules that already exist (diff)
downloadtm-scripts-8b49197847b16ac9a0b9b0a2edb91241ce21ac82.tar.gz
tm-scripts-8b49197847b16ac9a0b9b0a2edb91241ce21ac82.tar.xz
tm-scripts-8b49197847b16ac9a0b9b0a2edb91241ce21ac82.zip
[rootfs-stage31] delay fetching config by 1 second, kernel might not have routing table up to date otherwise
Diffstat (limited to 'remote/rootfs')
-rwxr-xr-xremote/rootfs/rootfs-stage31/data/init5
1 files changed, 4 insertions, 1 deletions
diff --git a/remote/rootfs/rootfs-stage31/data/init b/remote/rootfs/rootfs-stage31/data/init
index 586b21df..3a1087df 100755
--- a/remote/rootfs/rootfs-stage31/data/init
+++ b/remote/rootfs/rootfs-stage31/data/init
@@ -107,11 +107,14 @@ mount -n --move /dev/shm/uniontmp /mnt/uniontmp || drop_shell "Problem moving un
[ $DEBUG -ge 2 ] && drop_shell "Requested Debug Shell: after aufs'ing."
# Download config if available
+(
+sleep 1
/mnt/opt/openslx/bin/activate-sysconfig /mnt
+) &
# create udev rule for nic we booted from
cat > "/mnt/etc/udev/rules.d/70-net-boot-nic-name.rules" <<HEREEND
-SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="$MAC", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="br0"
+SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="$MAC", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
HEREEND
# create ip config