Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jan 2012 10:15:37 GMT
From:      "Eugene M. Zheganin" <eugene@zhegan.in>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/164475: gre misses RUNNING flag after a reboot
Message-ID:  <201201251015.q0PAFbeY040668@red.freebsd.org>
Resent-Message-ID: <201201251020.q0PAKAZ0004136@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         164475
>Category:       kern
>Synopsis:       gre misses RUNNING flag after a reboot
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 25 10:20:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Eugene M. Zheganin
>Release:        8.2-RELEASE
>Organization:
RealService LLC
>Environment:
FreeBSD moscow-omega 8.2-RELEASE FreeBSD 8.2-RELEASE #1: Tue Aug 23 16:30:54 YEKST 2011     emz@moscow-omega:/usr/obj/usr/src/sys/MOSCOW  amd64
>Description:
gre misses RUNNING flag after a reboot and thus cannot function. I have to 'up' it manually.

>How-To-Repeat:
Create a gre interface and reboot.
>Fix:
Place this script in /usr/local/etc/rc.d/

#!/bin/sh                                        
#

# PROVIDE: fixgre
# REQUIRE: LOGIN NETWORKING

. /etc/rc.subr                                      

name="fixgre"
rcvar=`set_rcvar`

start_cmd="start_cmd"

start_cmd () {
    for i in `ifconfig | grep gre | awk -F: '{print $1}'`
    do
        ifconfig $i up
    done
}                                        
                                                                                                                        
load_rc_config $name                         
run_rc_command "$1"

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201251015.q0PAFbeY040668>