diff -up initscripts-8.45.33/rc.d/init.d/network.bug6400 initscripts-8.45.33/rc.d/init.d/network --- initscripts-8.45.33/rc.d/init.d/network.bug6400 2010-10-13 15:36:48.000000000 +0200 +++ initscripts-8.45.33/rc.d/init.d/network 2011-06-12 09:53:24.000000000 +0200 @@ -200,7 +200,7 @@ case "$1" in # If this is a final shutdown/halt and there is an iSCSI session, # do not stop the service. if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then - if [ `find /sys/class/iscsi_session/ -mindepth 1 -maxdepth 1 -type d | wc -l` -ge 1 ]; then + if [ $(ls -d /sys/class/iscsi_session/*/. 2>/dev/null | wc -l) -ge 1 ]; then exit 1 fi fi