Blame | Last modification | View Log | RSS feed
#!/bin/shexport LC_ALL=Cif [ "$2" = "down" ]; thenif ! /sbin/ip route ls | grep -q ^default &&[ -f /var/lock/subsys/iscsi ]; then/etc/rc.d/init.d/iscsi stopfifiif [ "$2" = "up" ]; thenif /sbin/ip -o route show dev "$1" | grep -q '^default' &&/sbin/chkconfig iscsi; then/etc/rc.d/init.d/iscsi startfifi