Re: [opensuse-autoinstall] autoyast and vlan
On Fri, Nov 19, 2010 at 08:32, <Dirk.Lohmann@bertelsmann.de> wrote:
Hello,
Hi. I'm unsure again if your mail was supposed to go only to me, but i'm replying to the list so everyone can benefit from our infinite wisdom. (;
we try to solved the Problem with this shell script in initrd and it is working. But there is one blemishes. Yast is starting and then we have to klick through.
#!/bin/bash # # Autor: buss18
# Convert CMDLINE options to variables cat /proc/cmdline | /bin/sed 's/ /\n/g' > /tmp/networkinfo
source /tmp/networkinfo
# Load VLAN Module /sbin/modprobe 8021q
# Configure Interface /sbin/vconfig add eth0 $vlan /sbin/ifconfig eth0 up /sbin/ifconfig eth0.$vlan $hostip netmask $netmask /sbin/ifconfig eth0.$vlan up /sbin/route add default gw $gateway
# Sleep and ping gateway sleep 5 /sbin/arping -c 5 $gateway /bin/ping -c 5 $gateway
That sounds like progress! So... 1) Are you still using your autoyast= parameters as before? 2) Do you actually need the initrd (eg. because the module is not in the regular kernel)? Otherwise, I would just use the normal kernel and move your script from the initrd into <pre-scripts>. It should work without changes. tty, 686f6c6d -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (1)
-
686f6c6d