Quel Qun <[EMAIL PROTECTED]> writes:
> As 'planned', I am having some troubles with the new ifup script.
> I am still trying to understand what is wrong, but for now I noticed that:
> - I had to add a DHCP_HOSTNAME="my.host.name" in ifcfg-eth0
> - for dhcpcd the command line is 'dhcpcd -h hostname interface' and not
> 'dhcpcd -h hostname -i interface' (the i is for vendor tag).
> - something is wrong with the -n conditional tests (quotes around the
> variables?).
humm try this patch and let me know if it's working for you :
Index: ifup
===================================================================
RCS file: /home/cvs/cooker/soft/initscripts/sysconfig/network-scripts/ifup,v
retrieving revision 1.1.1.2
diff -u -u -r1.1.1.2 ifup
--- ifup 2000/07/30 05:07:38 1.1.1.2
+++ ifup 2000/07/31 20:45:51
@@ -48,6 +48,7 @@
if [ "$BOOTPROTO" = "dhcp" ];then
BOOTPROTO=dhcp
+ DYNCONFIG=true
fi
# Old BOOTP variable
@@ -88,15 +89,15 @@
ifconfig ${DEVICE} hw ether ${MACADDR}
fi
-if [ -n "$DHCP" -a -z "$DHCP_CLIENT" ];then
+if [ -n "$DYNCONFIG" -a "XXX$DHCP_CLIENT" = "XXX" ];then
if [ -x /sbin/dhcpcd ];then
DHCP_CLIENT=/sbin/dhcpcd
- elif [ -x /sbin/dhclient ];then
- DHCP_CLIENT=/sbin/dhclient
- elif [ -x /sbin/dhcpxd ];then
- DHCP_CLIENT=/sbin/dhcpxd
elif [ -x /sbin/pump ];then
DHCP_CLIENT=/sbin/pump
+ elif [ -x /sbin/dhcpxd ];then
+ DHCP_CLIENT=/sbin/dhcpxd
+ elif [ -x /sbin/dhclient ];then
+ DHCP_CLIENT=/sbin/dhclient
else
echo "Can't find a dhcp client"
exit 1;
--
MandrakeSoft Inc http://www.mandrakesoft.com
San-Francisco, CA USA --Chmouel