Bugzilla – Attachment 216363 Details for
Bug 346566
rcnetwork reload not deleted vlan interfaces
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
proposed patch to detect interfaces where the config got removed
bug-346566-rcnetwork-reload.dif (text/plain), 1.22 KB, created by
Marius Tomaschewski
on 2008-05-19 11:17:27 UTC
(
hide
)
Description:
proposed patch to detect interfaces where the config got removed
Filename:
MIME Type:
Creator:
Marius Tomaschewski
Created:
2008-05-19 11:17:27 UTC
Size:
1.22 KB
patch
obsolete
>Index: scripts/network >=================================================================== >--- scripts/network (Revision 1653) >+++ scripts/network (Arbeitskopie) >@@ -692,6 +692,9 @@ > > if [ -z "$INTERFACE" ] ; then > for IFACE in $BONDING_IFACES $VLAN_IFACES $DIALUP_IFACES $TUNNEL_IFACES $BRIDGE_IFACES ; do >+ for SI in $SKIP; do >+ test "$IFACE" = "$SI" && continue 2 >+ done > $FAKE ifup $CONFIG $IFACE -o rc $MODE > RET=$? > debug && printf " %-9s returned %s\n" $IFACE $RET >@@ -785,7 +788,7 @@ > ;; > > reload) >- if ! $0 status >/dev/null; then >+ if ! $0 status &>/dev/null; then > echo -n service network not active > rc_failed 7 > rc_status -v >Index: scripts/ifup >=================================================================== >--- scripts/ifup (Revision 1653) >+++ scripts/ifup (Arbeitskopie) >@@ -146,6 +146,11 @@ > IFUPFILE=$RUN_FILES_BASE/if-$INTERFACE > fi > if [ -e $IFUPFILE ] ; then >+ if [ ! -e "ifcfg-$CONFIG" ] ; then >+ message "`printf " %-9s config file removed: %s" \ >+ $INTERFACE "--> restart interface!"`" >+ exit $R_NOT_UP2DATE >+ fi > for FILE in if{cfg,route,services}-$CONFIG \ > config dhcp wireless routes; do > test -e $FILE || continue
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 346566
: 216363