mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
d0b2dbfa0e
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
16 lines
491 B
Bash
16 lines
491 B
Bash
#!/bin/sh
|
|
# script to connect a raw synchronous card to a system interface.
|
|
# Assumes the file if_sr was compiled with options NETGRAPH.
|
|
|
|
CARD=sr0
|
|
|
|
# create an interface "ng0" and attach it to the sync port.
|
|
# The packets had jolly well better be IP because we are not discriminating.
|
|
ngctl mkpeer ${CARD}: iface rawdata inet
|
|
|
|
# if ng0 already exists, use a CONNECT command instead of a mkpeer. e.g.
|
|
# ngctl connect ${CARD}: ng0: rawdata inet
|
|
|
|
# Then use ifconfig on interface ng0 as usual
|
|
|