Author: glen Date: Sun Oct 16 01:26:54 2005 GMT Module: SOURCES Tag: HEAD ---- Log message: - ignore non-empty but commented /etc/mactab
---- Files affected: SOURCES: rc-scripts-mactab-emptycheck.patch (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SOURCES/rc-scripts-mactab-emptycheck.patch diff -u /dev/null SOURCES/rc-scripts-mactab-emptycheck.patch:1.1 --- /dev/null Sun Oct 16 03:26:54 2005 +++ SOURCES/rc-scripts-mactab-emptycheck.patch Sun Oct 16 03:26:49 2005 @@ -0,0 +1,13 @@ +--- etc/rc.d/init.d/network~ 2005-10-16 04:22:43.823119234 +0300 ++++ etc/rc.d/init.d/network 2005-10-16 04:22:45.702829164 +0300 +@@ -57,7 +57,9 @@ + modprobe_net + + # Setup interfaces names +-[ -x /sbin/nameif -a -f /etc/mactab ] && run_cmd "Setting interfaces names (nameif)" /sbin/nameif ++if [ -x /sbin/nameif -a -f /etc/mactab ] && [ $(egrep -v '^(#| *$)' /etc/mactab | wc -l) -gt 0 ]; then ++ run_cmd "Setting interfaces names (nameif)" /sbin/nameif ++fi + + # Kernel network parameters + sysctl -e -p /etc/sysctl.conf > /dev/null 2>&1 ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
