diff options
Diffstat (limited to 'init.d/mtab.in')
-rw-r--r-- | init.d/mtab.in | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/init.d/mtab.in b/init.d/mtab.in index 23a5e7d9..620fe772 100644 --- a/init.d/mtab.in +++ b/init.d/mtab.in @@ -12,10 +12,9 @@ depend() start() { - # /etc/mtab could be a symlink to a location in /proc - if readlink -f /etc/mtab | grep -sq '^/proc/\(self\|[0-9]\+\)/mounts$' + if [ -l /etc/mtab ] then - einfo "Skipping mtab update (link points to location in /proc)" + einfo "Skipping mtab update (mtab is a symbolic link)" return 0 fi |