Browse Source

ignore swap when umounting

Waldemar Brodkorb 12 years ago
parent
commit
d22b564b8d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/base-files/src/etc/init.d/umount

+ 1 - 1
package/base-files/src/etc/init.d/umount

@@ -5,7 +5,7 @@ case $1 in
 autostop)
 	cd /
 	sync
-	for i in $(grep -v ^# /etc/fstab 2>/dev/null|awk '{ print $2 }');do
+	for i in $(grep -v ^# /etc/fstab 2>/dev/null|awk '{ print $2 }'|grep -v none);do
        	 umount $i 2>/dev/null
 	done
 	;;