Don't source /etc/profile from /etc/rc, but source /etc/rc.timezone as

a timezone instead, and set TZ=GMT0 as a default.
This commit is contained in:
Ben Gras 2005-08-09 16:58:28 +00:00
parent ad9e5d2cc0
commit 09a57f885a
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,5 @@
# Set timezone.
TZ='GMT0' export TZ
RC_TZ=/etc/rc.timezone
export TZ=GMT0
if [ -f "$RC_TZ" ]
then . "$RC_TZ"
fi

6
etc/rc
View file

@ -3,6 +3,7 @@
umask 022
TERM="${TERM-minix}"
PATH=/usr/local/bin:/bin:/usr/bin:/usr/sbin
RC_TZ=/etc/rc.timezone
export TERM PATH
usage()
@ -63,7 +64,10 @@ start)
echo .
# Set timezone.
. /etc/profile
export TZ=GMT0
if [ -f "$RC_TZ" ]
then . "$RC_TZ"
fi
# Try to read the hardware real-time clock, otherwise do it manually.
readclock || intr date -q