[TH][patch] Network rc script pand friendly

LordBlick lordblick at gmail.com
Sun Sep 23 11:21:23 CEST 2012


It allows starting empty pan0...panN interface for allowing any dhcpd 
daemon to serve on it - bnepX appears as part of panX bridge. This patch 
has no interference on other iterfaces, just other bridge name added. 
Withoit it, at every update I need to patch it...
Please test and apply. Any comments also welcome.
-- 
Best Regards,
Lord Blick
-------------- next part --------------
--- /etc/rc.d/init.d/network	2012-09-23 10:37:47.000000000 +0200
+++ /etc/rc.d/init.d/network.oryg	2012-04-04 08:25:55.000000000 +0200
@@ -144,7 +144,7 @@
 		interfaces_boot=`
 			for i in $ifcfg_files; do
 				case ${i##*/} in
-					ifcfg-lo|ifcfg-sit*|ifcfg-atm*|ifcfg-lec*|ifcfg-nas*|ifcfg-br*|ifcfg-pan*|ifcfg-macvlan*|ifcfg-macvtap*|ifcfg-*.*) continue ;;
+					ifcfg-lo|ifcfg-sit*|ifcfg-atm*|ifcfg-lec*|ifcfg-nas*|ifcfg-br*|ifcfg-macvlan*|ifcfg-macvtap*|ifcfg-*.*) continue ;;
 				esac
 				ONBOOT=""; USERS=""; . "$i" 2>/dev/null
 				[ ${USERS:-no} != no ] && continue
@@ -167,7 +167,7 @@
 		interfaces_br_boot=`
 			for i in $ifcfg_files; do
 				case ${i##*/} in
-					ifcfg-br*|ifcfg-pan*) ;;
+					ifcfg-br*) ;;
 					*) continue ;;
 				esac
 				ONBOOT=""; USERS=""; . "$i" 2>/dev/null


More information about the pld-devel-en mailing list