Browse files

make exiting the shell take you back to the inital prompt

  • Loading branch information...
1 parent cda37ed commit 2faf4514c1ea660ff0fecaf72b4dc6babd803064 @jedisct1 committed Sep 7, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 dot.profile
View
5 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
+
if [ ! -n "${SSH_CLIENT}" ]; then
. /config
. /net

0 comments on commit 2faf451

Please sign in to comment.