#!/bin/sh
# =============================================================================
# 
# @(#) inet_mkdev,v LiS-2_16_18-1(1.1.4.1) 2004/01/12 23:45:39
#
# -----------------------------------------------------------------------------
#
# Copyright (c) 2001-2004  OpenSS7 Corporation <http://www.openss7.com>
# Copyright (c) 1997-2000  Brian F. G. Bidulock <bidulock@openss7.org>
#
# All Rights Reserved.
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 675 Mass
# Ave, Cambridge, MA 02139, USA.
#
# -----------------------------------------------------------------------------
#
# U.S. GOVERNMENT RESTRICTED RIGHTS.  If you are licensing this Software on
# behalf of the U.S. Government ("Government"), the following provisions apply
# to you.  If the Software is supplied by the Department of Defense ("DoD"), it
# is classified as "Commercial Computer Software" under paragraph 252.227-7014
# of the DoD Supplement to the Federal Acquisition Regulations ("DFARS") (or any
# successor regulations) and the Government is acquiring only the license rights
# granted herein (the license rights customarily provided to non-Government
# users).  If the Software is supplied to any unit or agency of the Government
# other than DoD, it is classified as "Restricted Computer Software" and the
# Government's rights in the Software are defined in paragraph 52.227-19 of the
# Federal Acquisition Regulations ("FAR") (or any success regulations) or, in
# the cases of NASA, in paragraph 18.52.227-86 of the NASA Supplement to the FAR
# (or any successor regulations).
#
# -----------------------------------------------------------------------------
#
# Commercial licensing and support of this software is available from OpenSS7
# Corporation at a fee.  See http://www.openss7.com/
#
# -----------------------------------------------------------------------------
#
# Last Modified 2004/01/12 23:45:39 by brian
#
# =============================================================================

#
# Create iBCS INET devices
#

rm -fr $DESTDIR/dev/inet

mkdir -m 0755 $DESTDIR/dev/inet

mknod -m 0666 $DESTDIR/dev/inet/ip	c 30 32
mknod -m 0666 $DESTDIR/dev/inet/icmp	c 30 33
mknod -m 0666 $DESTDIR/dev/inet/ggp	c 30 34
mknod -m 0666 $DESTDIR/dev/inet/ipip	c 30 35
mknod -m 0666 $DESTDIR/dev/inet/tcp	c 30 36
mknod -m 0666 $DESTDIR/dev/inet/egp	c 30 37
mknod -m 0666 $DESTDIR/dev/inet/pub	c 30 38
mknod -m 0666 $DESTDIR/dev/inet/udp	c 30 39
mknod -m 0666 $DESTDIR/dev/inet/idp	c 30 40
mknod -m 0666 $DESTDIR/dev/inet/rawip	c 30 41

cd $DESTDIR/dev/inet

ln -sf udp arp
ln -sf udp rip

cd $DESTDIR/dev

for i in ip icmp ggp ipip tcp egp pup udp idp rawip arp rip
do
	rm -f $i
	ln inet/$i $i
done

# =============================================================================
# vim: ft=sh
