summaryrefslogtreecommitdiffstats
path: root/remote/rootfs/rootfs-stage31
diff options
context:
space:
mode:
authorSimon Rettberg2013-06-20 17:18:03 +0200
committerSimon Rettberg2013-06-20 17:18:03 +0200
commit3037959b37c6cdfd9a2b43ec9b33e9470c0d8f2e (patch)
tree2bb704ab74c545366cbeda3c32c5ad39bb71e7b4 /remote/rootfs/rootfs-stage31
parent[vmplayer] Wait for host's udhcpc to write DNS servers to config before gener... (diff)
downloadtm-scripts-3037959b37c6cdfd9a2b43ec9b33e9470c0d8f2e.tar.gz
tm-scripts-3037959b37c6cdfd9a2b43ec9b33e9470c0d8f2e.tar.xz
tm-scripts-3037959b37c6cdfd9a2b43ec9b33e9470c0d8f2e.zip
[rootfs-stage31/32] Try to download slxconfig in stage31 already, retry in stage32 if it failed
Diffstat (limited to 'remote/rootfs/rootfs-stage31')
-rwxr-xr-xremote/rootfs/rootfs-stage31/data/init6
1 files changed, 4 insertions, 2 deletions
diff --git a/remote/rootfs/rootfs-stage31/data/init b/remote/rootfs/rootfs-stage31/data/init
index bf11d9aa..586b21df 100755
--- a/remote/rootfs/rootfs-stage31/data/init
+++ b/remote/rootfs/rootfs-stage31/data/init
@@ -106,10 +106,12 @@ 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
+/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="eth0"
-SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="$BRIDGEMAC", 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="br0"
HEREEND
# create ip config