#!/bin/sh
#
# Create ng0 interface before pf is starting
#
# $FreeBSD: src/etc/rc.d/create_ng0,v 1.0.0.0 2004/10/27 01:02:53 mtm Exp $
#

# PROVIDE: create_ng0
# REQUIRE: pflog
# BEFORE: pf
# KEYWORD: nojail

. /etc/rc.subr

name="create_ng0"
start_cmd="create_ng0_start"
stop_cmd=":"

create_ng0_start()
{
    echo "Creating interface ng0"
    /usr/sbin/ngctl mkpeer iface dummy inet
}

load_rc_config $name
run_rc_command "$1"
