]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Only check quota(1) if a filesystem with quotas is mounted
authorAlexander Barton <alex@barton.de>
Fri, 17 Sep 2010 09:52:35 +0000 (11:52 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 17 Sep 2010 09:52:35 +0000 (11:52 +0200)
sys/profile

index 97a7e67da6baad3e0c540144481df9af37c6db8f..ce201d4d4fead80992ac9835689efc99f4382eff 100644 (file)
@@ -137,7 +137,10 @@ fi
        && . /etc/ksh.kshrc
 
 # Check filesystem quotas
-which quota >/dev/null 2>&1
-[ $? -eq 0 ] && quota -q
+mount | grep quota >/dev/null 2>&1
+if [ $? -eq 0 ]; then
+       which quota >/dev/null 2>&1
+       [ $? -eq 0 ] && quota -q
+fi
 
 # -eof-