I just switched my /bin/sh link to ash and noticed
/etc/sysconfig/network-devices/services/dhcpcd uses == which doesn't
work on sh compliant shells, here's a small patch to fix it.
From Andrew
diff -Naur
blfs-bootscripts-20050628.orig/blfs/sysconfig/network-devices/services/dhcpcd
blfs-bootscripts-20050628/blfs/sysconfig/network-devices/services/dhcpcd
---
blfs-bootscripts-20050628.orig/blfs/sysconfig/network-devices/services/dhcpcd
2005-06-30 23:07:47.000000000 +0000
+++ blfs-bootscripts-20050628/blfs/sysconfig/network-devices/services/dhcpcd
2005-06-30 23:08:49.000000000 +0000
@@ -35,7 +35,7 @@
# Save the return value
RET="$?"
# Print the assigned settings if requested
- if [ "$RET" == "0" -a "$PRINTIP" == "yes" ]; then
+ if [ "$RET" = "0" -a "$PRINTIP" = "yes" ]; then
. /var/lib/dhcpc/dhcpcd-$1.info
if [ "$PRINTALL" == "yes" ]; then
echo ""
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page