From 18adcb1ee8d9c09b0788d899be421e0f5ef1068a Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sun, 6 Jan 2008 23:58:12 +0000 Subject: We may as well use echo here as we recreate mtab fully if successfull. --- init.d/checkroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.d') diff --git a/init.d/checkroot b/init.d/checkroot index d751168a..712e0bec 100755 --- a/init.d/checkroot +++ b/init.d/checkroot @@ -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 -- cgit v1.2.3