We may as well use echo here as we recreate mtab fully if successfull.

This commit is contained in:
Roy Marples 2008-01-06 23:58:12 +00:00
parent 789bd6ab09
commit 18adcb1ee8

View File

@ -32,7 +32,7 @@ depend() {
do_mtab() {
# Don't create mtab if /etc is readonly
if ! cp /dev/null /etc/mtab 2>/dev/null; then
if ! echo 2>/dev/null >/etc/mtab; then
ewarn "Skipping /etc/mtab initialization (ro root)"
return 0
fi