Fix gre after reboot

назад

#!/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 down
ifconfig $i up
done
}

load_rc_config $name
run_rc_command "$1"