Setup wtmp for BSD too
This commit is contained in:
parent
1ef8a7f041
commit
9cf4628aaa
@ -42,13 +42,11 @@ start() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "${RC_UNAME}" = "Linux" ] ; then
|
# Setup login records
|
||||||
# Setup login records
|
printf "" >/var/run/utmp
|
||||||
printf "" >/var/run/utmp
|
[ -e /var/log/wtmp ] || printf "" >/var/log/wtmp
|
||||||
[ -e /var/log/wtmp ] || printf "" >/var/log/wtmp
|
chgrp utmp /var/run/utmp /var/log/wtmp
|
||||||
chgrp utmp /var/run/utmp /var/log/wtmp
|
chmod 0664 /var/run/utmp /var/log/wtmp
|
||||||
chmod 0664 /var/run/utmp /var/log/wtmp
|
|
||||||
fi
|
|
||||||
|
|
||||||
ebegin "Updating environment"
|
ebegin "Updating environment"
|
||||||
# Use our version, not portage version.
|
# Use our version, not portage version.
|
||||||
|
Loading…
Reference in New Issue
Block a user