diff options
author | Alexander Hall <halex@cvs.openbsd.org> | 2011-07-08 23:53:54 +0000 |
---|---|---|
committer | Alexander Hall <halex@cvs.openbsd.org> | 2011-07-08 23:53:54 +0000 |
commit | 4d19117eb03e368e4cd8ab2492029884112e7196 (patch) | |
tree | f1ab4a2517f735fbf9c47a832477fbc69210517f | |
parent | 7d87b3985bf49caf06e11b4f8ccf5d0ab9bed99b (diff) |
make exiting the shell take you back to the inital prompt
"i like" henning@, "Fine with me" deraadt@
-rw-r--r-- | distrib/miniroot/dot.profile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/distrib/miniroot/dot.profile b/distrib/miniroot/dot.profile index 757cfbffce9..6485a0b49ed 100644 --- a/distrib/miniroot/dot.profile +++ b/distrib/miniroot/dot.profile @@ -1,4 +1,4 @@ -# $OpenBSD: dot.profile,v 1.16 2010/06/30 20:22:01 halex Exp $ +# $OpenBSD: dot.profile,v 1.17 2011/07/08 23:53:53 halex Exp $ # $NetBSD: dot.profile,v 1.1 1995/12/18 22:54:43 pk Exp $ # # Copyright (c) 2009 Kenneth R. Westerback @@ -52,6 +52,9 @@ if [ "X${DONEPROFILE}" = "X" ]; then mount -u /dev/${rootdisk:-rd0a} / + # Create a fake rc that just returns 1 and throws us back + echo ! : > /etc/rc + # set up some sane defaults echo 'erase ^?, werase ^W, kill ^U, intr ^C, status ^T' stty newcrt werase ^W intr ^C kill ^U erase ^? status ^T |