From d22b564b8da59fe786ae5cfced0cc79a4d6a052a Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Mon, 23 Sep 2013 09:13:12 +0200
Subject: ignore swap when umounting

---
 package/base-files/src/etc/init.d/umount | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'package/base-files/src')

diff --git a/package/base-files/src/etc/init.d/umount b/package/base-files/src/etc/init.d/umount
index bcd545999..49bd5a020 100755
--- a/package/base-files/src/etc/init.d/umount
+++ b/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
 	;;
-- 
cgit v1.2.3