Module Name: src Committed By: kre Date: Thu Jul 21 07:51:12 UTC 2022
Modified Files: src/etc/root: dot.profile Log Message: Get rid of the (insulting) We recommend that you create a non-root account... message from single user mode shell startups. To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/etc/root/dot.profile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/etc/root/dot.profile diff -u src/etc/root/dot.profile:1.33 src/etc/root/dot.profile:1.34 --- src/etc/root/dot.profile:1.33 Sat Jul 9 09:43:51 2022 +++ src/etc/root/dot.profile Thu Jul 21 07:51:12 2022 @@ -1,4 +1,4 @@ -# $NetBSD: dot.profile,v 1.33 2022/07/09 09:43:51 kre Exp $ +# $NetBSD: dot.profile,v 1.34 2022/07/21 07:51:12 kre Exp $ case "${PATH}" in /rescue:*) ;; # leave it alone, user can change manually (if required) @@ -21,6 +21,6 @@ umask 022 export ENV=/root/.shrc # Do not display in 'su -' case -if [ -z "$SU_FROM" ]; then +if [ -z "$SU_FROM" ] && [ "$PPID" -ne 1 ]; then echo "We recommend that you create a non-root account and use su(1) for root access." fi