From 9cf4628aaa780eb8173c7184d5ccf4f0f3b1abb1 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 23 Aug 2007 10:25:09 +0000 Subject: Setup wtmp for BSD too --- init.d/bootmisc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'init.d/bootmisc') diff --git a/init.d/bootmisc b/init.d/bootmisc index 3fefd92a..73456c8d 100755 --- a/init.d/bootmisc +++ b/init.d/bootmisc @@ -42,13 +42,11 @@ start() { fi done - if [ "${RC_UNAME}" = "Linux" ] ; then - # Setup login records - printf "" >/var/run/utmp - [ -e /var/log/wtmp ] || printf "" >/var/log/wtmp - chgrp utmp /var/run/utmp /var/log/wtmp - chmod 0664 /var/run/utmp /var/log/wtmp - fi + # Setup login records + printf "" >/var/run/utmp + [ -e /var/log/wtmp ] || printf "" >/var/log/wtmp + chgrp utmp /var/run/utmp /var/log/wtmp + chmod 0664 /var/run/utmp /var/log/wtmp ebegin "Updating environment" # Use our version, not portage version. -- cgit v1.2.3