summaryrefslogtreecommitdiff
path: root/distrib/hp300/ramdisk/dot.profile
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-04-01 01:31:41 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-04-01 01:31:41 +0000
commite6253b128b1fa902fb1d7c45b1d2c7858588abe2 (patch)
tree18cd8ac6e99c0fef64c7d7acab3ee45255ec2371 /distrib/hp300/ramdisk/dot.profile
parenta60b8be667856b47ec07250410d8fd8930c3ba88 (diff)
KNF sh ends up saving space; krw ok
Diffstat (limited to 'distrib/hp300/ramdisk/dot.profile')
-rw-r--r--distrib/hp300/ramdisk/dot.profile28
1 files changed, 8 insertions, 20 deletions
diff --git a/distrib/hp300/ramdisk/dot.profile b/distrib/hp300/ramdisk/dot.profile
index bbbb253c7be..c2f0f09b425 100644
--- a/distrib/hp300/ramdisk/dot.profile
+++ b/distrib/hp300/ramdisk/dot.profile
@@ -1,5 +1,5 @@
#
-# $OpenBSD: dot.profile,v 1.11 2001/12/05 19:50:46 deraadt Exp $
+# $OpenBSD: dot.profile,v 1.12 2002/04/01 01:31:39 deraadt Exp $
# $NetBSD: dot.profile,v 1.1 1995/07/18 04:13:09 briggs Exp $
#
# Copyright (c) 1994 Christopher G. Demetriou
@@ -36,8 +36,6 @@ export TERM=hp300h
umask 022
set -o emacs # emacs-style command line editing
-TMPWRITEABLE=/tmp/writeable
-
if [ "X${DONEPROFILE}" = "X" ]; then
DONEPROFILE=YES
export DONEPROFILE
@@ -50,9 +48,6 @@ if [ "X${DONEPROFILE}" = "X" ]; then
echo 'Remounting /dev/rd0a as root...'
mount -u /dev/rd0a /
- # tell install.md we've done it
- > ${TMPWRITEABLE}
-
# pull in the functions that people will use from the shell prompt.
. /.commonutils
. /.instutils
@@ -63,20 +58,13 @@ if [ "X${DONEPROFILE}" = "X" ]; then
echo -n '(I)nstall, (U)pgrade, or (S)hell? '
read _forceloop
case "$_forceloop" in
- i*|I*)
- /install
- ;;
-
- u*|U*)
- /upgrade
- ;;
-
- s*|S*)
- ;;
-
- *)
- _forceloop=""
- ;;
+ i*|I*) /install
+ ;;
+ u*|U*) /upgrade
+ ;;
+ s*|S*) ;;
+ *) _forceloop=""
+ ;;
esac
done
fi