diff options
author | grr <grr@cvs.openbsd.org> | 1997-05-16 03:40:42 +0000 |
---|---|---|
committer | grr <grr@cvs.openbsd.org> | 1997-05-16 03:40:42 +0000 |
commit | 467f6d9212c208d9cfba9b8454756c9f0ae2fbf9 (patch) | |
tree | f49d1992798f253897643124d66ff902fc8e753d /distrib/sparc/install.md | |
parent | d66fe9c28c73113094af0c26926723c95a780c53 (diff) |
/kern/msgbuf has about 2048 leading nulls, which seems to confuse sed... also add hostname(1) alias via /kern/hostname
Diffstat (limited to 'distrib/sparc/install.md')
-rw-r--r-- | distrib/sparc/install.md | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/distrib/sparc/install.md b/distrib/sparc/install.md index d945ac110ba..c8970d88e6c 100644 --- a/distrib/sparc/install.md +++ b/distrib/sparc/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.10 1997/05/16 02:09:38 grr Exp $ +# $OpenBSD: install.md,v 1.11 1997/05/16 03:40:41 grr Exp $ # $NetBSD: install.md,v 1.3.2.5 1996/08/26 15:45:28 gwr Exp $ # # @@ -44,6 +44,20 @@ # Machine-dependent install sets MDSETS="xbin xman xinc xcon" MSGBUF=/kern/msgbuf +HOSTNAME=/kern/hostname + +# an alias for hostname(1) +hostname() { + if [ -x /bin/hostname ]; then + /bin/hostname $1 + else + if [ -z "$1" ]; then + cat $HOSTNAME + else + echo $1 > $HOSTNAME + fi + fi +} md_set_term() { if [ ! -z "$TERM" ]; then @@ -83,20 +97,20 @@ md_machine_arch() { md_get_diskdevs() { # return available disk devices # dmesg | egrep "(^sd[0-9] |^x[dy][0-9] )" | cut -d" " -f1 | sort -u - sed -n -e '1,/^Copyright /d' -e '/^sd[0-9]/{s/ .*//;p;}' -e '/^x[dy][0-9]/{s/ .*//;p;}' \ - < $MSGBUF + sed -n -e '1,/^OpenBSD /d' -e '/^sd[0-9] /{s/ .*//;p;}' \ + -e '/^x[dy][0-9] /{s/ .*//;p;}' \ < $MSGBUF } md_get_cddevs() { # return available CDROM devices # dmesg | grep "^cd[0-9] " | cut -d" " -f1 | sort -u - sed -n -e '1,/^Copyright /d' -e '/^cd[0-9]/{s/ .*//;p;q;}' < $MSGBUF + sed -n -e '1,/^OpenBSD /d' -e '/^cd[0-9] /{s/ .*//;p;}' < $MSGBUF } md_get_ifdevs() { # return available network devices # dmesg | egrep "(^le[0-9] |^ie[0-9] )" | cut -d" " -f1 | sort -u - sed -n -e '1,/^Copyright /d' -e '/^le[0-9]/{s/ .*//;p;q;}'< $MSGBUF + sed -n -e '1,/^OpenBSD /d' -e '/^le[0-9] /{s/ .*//;p;}'< $MSGBUF } md_get_partition_range() { |