]> TLD Linux GIT Repositories - rc-scripts.git/blobdiff - lib/ifup-vlan
- merged misc fixes
[rc-scripts.git] / lib / ifup-vlan
index 3d72d7859c3d00c34e47da77319e223b854c9ca9..f506c7b044ad9eb49032659f9463c8fc61517ba1 100755 (executable)
@@ -46,7 +46,7 @@ if [ ! -f /etc/sysconfig/interfaces/ifcfg-${VLAN_DEV} ]; then
        exit 1
 fi
 
-if ! grep -qlE "ONBOOT=[^n][^o]" /etc/sysconfig/interfaces/ifcfg-${VLAN_DEV}; then
+if ! grep -qlE "ONBOOT=[^n][^o]" /etc/sysconfig/interfaces/ifcfg-${VLAN_DEV} 2>/dev/null; then
        nls "Warning: ${VLAN_DEV} is disabled on boot."
 fi