SVN: rc-scripts/trunk/rc.d/init.d/network

glen glen at pld-linux.org
Wed Oct 18 13:55:42 CEST 2006


Author: glen
Date: Wed Oct 18 13:55:41 2006
New Revision: 7867

Modified:
   rc-scripts/trunk/rc.d/init.d/network
Log:
Remove ifcfg- prefix from interface names.

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 Oct 18 13:55:41 2006
@@ -205,7 +205,7 @@
 				*ifcfg-lo) continue ;;
 			esac
 			ONBOOT=""; . "$i" 2>/dev/null
-			is_yes "$ONBOOT" && echo "${i##*/}"
+			is_yes "$ONBOOT" && echo "${i##*/ifcfg-}"
 		done
 	`
 else
@@ -215,7 +215,7 @@
 				ifcfg-lo|ifcfg-sit*|ifcfg-atm*|ifcfg-lec*|ifcfg-nas*|ifcfg-br*|ifcfg-*.*) continue ;;
 			esac
 			ONBOOT=""; . "$i" 2>/dev/null
-			is_yes "$ONBOOT" && echo "${i##*/}"
+			is_yes "$ONBOOT" && echo "${i##*/ifcfg-}"
 		done
 	`
 
@@ -226,7 +226,7 @@
 				*) continue ;;
 			esac
 			ONBOOT=""; . "$i" 2>/dev/null
-			is_yes "$ONBOOT" && echo "${i##*/}"
+			is_yes "$ONBOOT" && echo "${i##*/ifcfg-}"
 		done
 	`
 
@@ -237,7 +237,7 @@
 				*) continue ;;
 			esac
 			ONBOOT=""; . "$i" 2>/dev/null
-			is_yes "$ONBOOT" && echo "${i##*/}"
+			is_yes "$ONBOOT" && echo "${i##*/ifcfg-}"
 		done
 	`
 
@@ -248,7 +248,7 @@
 				*) continue ;;
 			esac
 			ONBOOT=""; . "$i" 2>/dev/null
-			is_yes "$ONBOOT" && echo "${i##*/}"
+			is_yes "$ONBOOT" && echo "${i##*/ifcfg-}"
 		done
 	`
 fi


More information about the pld-cvs-commit mailing list