|
From: Thomas E. <tho...@bu...> - 2004-02-11 00:18:04
|
Friedrich Lobenstock wrote: > Thomas Eder wrote on 11.02.2004 00:49 MET: > >> Friedrich Lobenstock wrote: >> >>> Thomas Eder wrote on 11.02.2004 00:30 MET: >>> >>>> the /etc/sysconfig/nic/ifcfg-vlanXXX doesn't work without this patch: >>>> >>>> --- config/etc/init.d/network.old 2004-02-11 >>>> 00:09:57.000000000 +0100 >>>> +++ config/etc/init.d/network 2004-02-11 00:10:25.000000000 +0100 >>>> @@ -275,9 +275,9 @@ >>>> start) >>>> >>>> # >>>> - # if vlan tools are installed set vlan naming shema >>>> + # set vlan naming shema >>>> # >>>> - test -x $VLAN && $VLAN set_name_type >>>> VLAN_PLUS_VID_NO_PAD &> /dev/null >>>> + $VLAN set_name_type VLAN_PLUS_VID_NO_PAD &> /dev/null >>> >>> >>> >>> >>> >>> OK, I think after taking a closer look at the network script I know >>> what the real problem is. >>> >>> Please change the VLAN varibale (around line 42) to reflect the full >>> patch of the vconfig utility. Run "which vconfig" to find out. >> >> >> >> -VLAN=vconfig >> +VLAN=/bin/vconfig >> ..[..cut..].. >> - # if vlan tools are installed set vlan naming shema >> + # set vlan naming shema >> # >> - test -x $VLAN && $VLAN set_name_type VLAN_PLUS_VID_NO_PAD &> >> /dev/null >> + $VLAN set_name_type VLAN_PLUS_VID_NO_PAD &> /dev/null > > > If you change the above then the "test -x" should successfully run the > vlan utility. Please test with only changing the VLAN variable. THX. > Klaer mich bitte auf, aber: ich glaube /bin /usr/bin /sbin /usr/sbin sind bei den meisten linux/unix in $PATH enthalten, daraus folgt fuer mich, dass VLAN=vconfig "fast immer" stimmt. Wenn /bin/vconfig auf zb. /sbin/vconfig geaendert wird, hast du mit unserem script ein _Problem_. Das "test -x $VLAN" ist, seit DL auf _CD_ ist eigentlich absurd, oder kennst du einen Weg um Dateien von der RO CD zu "deaktivieren". Wenn du sagen wuerdest wir testen ob es vlan ueberhaupt verwendet wird, ok aber so tauschen wir einen "Fehler" durch einen anderen :-( -- thomas |