init.d/mtab: Another instance of the same pattern matching case.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
parent
670589571e
commit
87daa26ca7
@ -28,7 +28,7 @@ start()
|
|||||||
# makes / readonly and dismounts all tmpfs even if in use which is
|
# makes / readonly and dismounts all tmpfs even if in use which is
|
||||||
# not good. Luckily, umount uses /etc/mtab instead of /proc/mounts
|
# not good. Luckily, umount uses /etc/mtab instead of /proc/mounts
|
||||||
# which allows this hack to work.
|
# which allows this hack to work.
|
||||||
grep -v "^[^ ]* / tmpfs " /proc/mounts > /etc/mtab
|
grep -v "^[! ]* / tmpfs " /proc/mounts > /etc/mtab
|
||||||
|
|
||||||
# Remove stale backups
|
# Remove stale backups
|
||||||
rm -f /etc/mtab~ /etc/mtab~~
|
rm -f /etc/mtab~ /etc/mtab~~
|
||||||
|
Loading…
Reference in New Issue
Block a user