Commit 114a778b authored by Simon McVittie's avatar Simon McVittie Committed by Daniel Baumann
Browse files

If /etc/mtab exists as a file, replace it with a symlink (Closes: #746570).

parent 547f5593
......@@ -2,9 +2,10 @@
set -e
# Create /etc/mtab symlink
# Create /etc/mtab symlink, replacing a regular file if necessary
if [ ! -L /etc/mtab ]
then
rm -f /etc/mtab
ln -s /proc/mtab /etc/mtab
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment