[projects/rc-scripts] fix ONBOOT handling for VLAN interfaces

jajcus jajcus at pld-linux.org
Fri Dec 7 23:01:25 CET 2018


commit 4e663c67ce3ca2b848ce7bd418cbb99fdbc5fb01
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Fri Dec 7 22:56:38 2018 +0100

    fix ONBOOT handling for VLAN interfaces
    
    was broken by: cf38a0 Use is_yes, so ONBOOT can be on, yes etc.

 rc.d/init.d/network | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 960c9a06..9fe7651a 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -168,7 +168,7 @@ find_boot_interfaces() {
 				DEVICE=""; ONBOOT=""; USERS=""; . "$i" 2>/dev/null
 				[ "${DEVICE:+set}" != "set" ] && continue
 				[ ${USERS:-no} != no ] && continue
-				is_yes [ ${ONBOOT:-no} && echo "${i##*/ifcfg-}"
+				is_yes ${ONBOOT:-no} && echo "${i##*/ifcfg-}"
 			done
 		`
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/rc-scripts.git/commitdiff/30595a70bf48c54228d8aecfdcc8ef8bc69ad61a



More information about the pld-cvs-commit mailing list