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