import netbsd sed
. speeds up mkdep (i.e. world builds) significantly . have to keep minix /bin/sed for a while because previous usr/etc/rc depends on it . force mkdep to use /usr/bin/sed for speedup
This commit is contained in:
+3
-1
@@ -77,7 +77,9 @@ get_eth_labels() {
|
||||
# Filter out the non-vlan ethernet entries from inet.conf.
|
||||
# Produce as output a list of "drivername_instancenr"-formatted labels.
|
||||
# The first sed is taken from /bin as older GNU sed versions don't know '\t'.
|
||||
/bin/sed 's/\t/ /g' /etc/inet.conf | \
|
||||
# /bin/sed is the minix sed, /usr/bin/sed is the netbsd sed. Earlier versions
|
||||
# of this script used \t that only the minix sed understands.
|
||||
/bin/sed 's/\008/ /g' /etc/inet.conf | \
|
||||
sed -n 's/^ *eth[0-9][0-9]* *\([^ ][^ ]*\) *\([0-9][0-9]*\).*$/\1_\2/p' | \
|
||||
grep -v '^vlan_'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user