From 87daa26ca77a4d564959f7ab263cbc53d8925fb5 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Tue, 6 Nov 2012 23:02:56 +0000 Subject: init.d/mtab: Another instance of the same pattern matching case. Signed-off-by: Robin H. Johnson --- init.d/mtab.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.d/mtab.in') diff --git a/init.d/mtab.in b/init.d/mtab.in index 0be5adb..a32b8d6 100644 --- a/init.d/mtab.in +++ b/init.d/mtab.in @@ -28,7 +28,7 @@ start() # makes / readonly and dismounts all tmpfs even if in use which is # not good. Luckily, umount uses /etc/mtab instead of /proc/mounts # which allows this hack to work. - grep -v "^[^ ]* / tmpfs " /proc/mounts > /etc/mtab + grep -v "^[! ]* / tmpfs " /proc/mounts > /etc/mtab # Remove stale backups rm -f /etc/mtab~ /etc/mtab~~ -- cgit v1.2.3