Create a litle script to generate a stripped down protocols file.

This commit is contained in:
garbled 2008-05-01 22:01:16 +00:00
parent 8127f641e3
commit 9ce0927805

7
distrib/common/mkprotocols Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
# $NetBSD: mkprotocols,v 1.1 2008/05/01 22:01:16 garbled Exp $
# Generate a shaved down protocols file for install media.
#
echo "# \$NetBSD\$" > protocols
echo "# Shaved down /etc/protocols for installation media" >> protocols
/usr/bin/sed -e 's/#.*//' -e '/^$/d' -e 's/ *$//' -e 's/ */ /' ../../etc/protocols >> protocols