summaryrefslogtreecommitdiffstats
path: root/initramfs
diff options
context:
space:
mode:
authorDirk von Suchodoletz2007-06-01 19:47:28 +0200
committerDirk von Suchodoletz2007-06-01 19:47:28 +0200
commitfb186c83b4ecabe32c67729a74655bb50855abd3 (patch)
tree464f3b1175f71b6ba345627d292a066a39c51ec7 /initramfs
parentCleanup for new style of virtual machine handling (runvware v2, see (diff)
downloadcore-fb186c83b4ecabe32c67729a74655bb50855abd3.tar.gz
core-fb186c83b4ecabe32c67729a74655bb50855abd3.tar.xz
core-fb186c83b4ecabe32c67729a74655bb50855abd3.zip
Check if more than one ethernet interface is present ...
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1138 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs')
-rw-r--r--initramfs/initrd-stuff/etc/messages4
-rw-r--r--initramfs/initrd-stuff/etc/messages.de5
-rwxr-xr-xinitramfs/initrd-stuff/init3
3 files changed, 11 insertions, 1 deletions
diff --git a/initramfs/initrd-stuff/etc/messages b/initramfs/initrd-stuff/etc/messages
index 9e0f0d22..39421d8a 100644
--- a/initramfs/initrd-stuff/etc/messages
+++ b/initramfs/initrd-stuff/etc/messages
@@ -38,6 +38,10 @@ appropriate modules (without .ko)."
init_nowlan=" No wireless LAN capable interface found. Did you provide the \
proper kernel\n modules?"
init_wlanf=" Unable to configure the WLAN interface."
+init_2eif=" You seem to have more than one active (=module loaded) ethernet \
+interfaces\n installed. This might induce problems, if your client started \
+PXE via one\n interface, but tries to communicate over the other in linux \
+mode. Try\n to reorder your network module list."
init_errdhcp=" Did not get complete IP \
configuration via DHCP. You may want to add\n a vendor code identifier \
via kernel commandline (vci=VCI)."
diff --git a/initramfs/initrd-stuff/etc/messages.de b/initramfs/initrd-stuff/etc/messages.de
index 53269e00..9ec5b01e 100644
--- a/initramfs/initrd-stuff/etc/messages.de
+++ b/initramfs/initrd-stuff/etc/messages.de
@@ -35,6 +35,11 @@ Kombination mit IPAPPEND (PXE)\n o.ae. oder DHCP!"
init_errnwad=" Konnte die Netzwerk-Adapter, die durch den slx/mkramfs bzw. \
mkdxsinitrd-Aufruf definiert\n wurden, nicht laden. Bitte erneut aufrufen \
und die passenden Module auflisten\n (ohne Endung .ko)."
+init_wlanf=" Unable to configure the WLAN interface."
+init_2eif=" You seem to have more than one active (=module loaded) ethernet \
+interfaces\n installed. This might induce problems, if your client started \
+PXE via one\n interface, but tries to communicate over the other in linux \
+mode. Try\n to reorder your network module list."
init_errdhcp=" Keine komplette IP-Konfiguration ueber DHCP bekommen. \
Eventuell sollten Sie\n ueber die Kernel Start Optionen eine Hersteller Code \
ID (vendor code identifier)\n (VCI=vci) hinzufuegen."
diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init
index 3ba3fa1e..b91326c1 100755
--- a/initramfs/initrd-stuff/init
+++ b/initramfs/initrd-stuff/init
@@ -314,7 +314,8 @@ if [ -n "${essid}" ] ; then
#echo "Starting shell for testing of WLAN setup procedure"
#/bin/ash
else
- : # check here for the active ethernet link
+ # check here for the active ethernet link
+ ip link show dev eth1 >/dev/null 2>&1 && error "$init_2eif" nonfatal
fi
# set up loopback networking