Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/root Avoid using id(1), as this loses when /usr isn't mo...
details: https://anonhg.NetBSD.org/src/rev/e9be1da26736
branches: trunk
changeset: 471539:e9be1da26736
user: mycroft <mycroft%NetBSD.org@localhost>
date: Sun Apr 04 09:58:57 1999 +0000
description:
Avoid using id(1), as this loses when /usr isn't mounted.
diffstat:
etc/root/dot.profile | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (21 lines):
diff -r 95acab480bcc -r e9be1da26736 etc/root/dot.profile
--- a/etc/root/dot.profile Sun Apr 04 09:57:11 1999 +0000
+++ b/etc/root/dot.profile Sun Apr 04 09:58:57 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: dot.profile,v 1.9 1999/03/30 02:36:05 hubertf Exp $
+# $NetBSD: dot.profile,v 1.10 1999/04/04 09:58:57 mycroft Exp $
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin
PATH=${PATH}:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin
@@ -20,10 +20,6 @@
ll(){ ls -l $* ; }
x(){ exit ; }
-if [ `/usr/bin/id -u` = 0 ]; then
- PS1="`hostname -s`# "
-else
- PS1="`hostname -s`$ "
-fi
+PS1="`hostname -s`$PS1"
echo "Don't login as root, use the su command."
Home |
Main Index |
Thread Index |
Old Index