get fstype from mount entry
[unix-history] / usr / src / usr.sbin / amd / config / Configure
CommitLineData
e1a31032
KM
1#!/bin/sh -
2#
3# Copyright (c) 1989 Jan-Simon Pendry
4# Copyright (c) 1989 Imperial College of Science, Technology & Medicine
b013580c
KB
5# Copyright (c) 1989, 1993
6# The Regents of the University of California. All rights reserved.
e1a31032
KM
7#
8# This code is derived from software contributed to Berkeley by
9# Jan-Simon Pendry at Imperial College, London.
10#
11# %sccs.include.redist.sh%
12#
db3e2f43 13# @(#)Configure 8.1 (Berkeley) %G%
8d2991d5
JSP
14#
15# $Id: Configure,v 5.2.1.2 91/05/07 22:20:26 jsp Alpha $
e1a31032
KM
16#
17echo "Making ./arch and ./os-type executable ..."
18until chmod +x ./arch ./os-type; do echo "Error: chmod command failed" >&2; exit 1; done
19echo "Checking ./arch and ./os-type ..."
20echo ""
21arch="`sh ./arch 2>/dev/null`"
22os="`sh ./os-type 2>/dev/null`"
23case "$arch" in
24"") echo "./arch doesn't produce an answer - please check it" >&2; exit 1;;
25esac
26case "$os" in
27"") echo "./os-type doesn't produce an answer - please check it" >&2; exit 1;;
28esac
29cat << %
30This machine appears to be a "$arch" running "$os".
31If that is correct just run make.
32If those are incorrect please edit ./arch and ./os-type
33%
34exit 0