diff --git a/remountdefault b/remountdefault index 66263a0..811811a 100755 --- a/remountdefault +++ b/remountdefault @@ -4,7 +4,7 @@ if [ "$(id -u)" -eq 0 ]; then # get the mountpath list from fstab - for mountpath in $(grep -v -E "(^#|none)" /etc/fstab | awk '{print $2}'); do + for mountpath in $(grep -v -E "(^#)" /etc/fstab | awk '{print $2}'); do # ensure "${mountpath}" is already mounted if grep -q " ${mountpath} " /etc/mtab; then mount "${mountpath}" -o remount