Author: glen
Date: Wed Mar 28 23:33:34 2012
New Revision: 12522

Modified:
   rc-scripts/trunk/rc.d/init.d/network
Log:
use is_empty_file function on /etc/mactab

Modified: rc-scripts/trunk/rc.d/init.d/network
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/network        (original)
+++ rc-scripts/trunk/rc.d/init.d/network        Wed Mar 28 23:33:34 2012
@@ -48,7 +48,7 @@
        modprobe_net
 
        # Setup interfaces names
-       if [ -x /sbin/nameif -a -f /etc/mactab -a -x /usr/bin/wc ] && [ $(grep 
-vsE '^(#| *$)' /etc/mactab | wc -l) -gt 0 ]; then
+       if ! is_empty_file /etc/mactab && [ -x /sbin/nameif ]; then
                run_cmd "Setting interfaces names (nameif)" /sbin/nameif
        fi
 
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to