]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blob - iscsi-initiator-utils/04-iscsi
Change file layout of the makefiles.
[people/stevee/ipfire-3.x.git] / iscsi-initiator-utils / 04-iscsi
1 #!/bin/sh
2
3 export LC_ALL=C
4
5 if [ "$2" = "down" ]; then
6 if ! /sbin/ip route ls | grep -q ^default &&
7 [ -f /var/lock/subsys/iscsi ]; then
8 /etc/rc.d/init.d/iscsi stop
9 fi
10 fi
11
12 if [ "$2" = "up" ]; then
13 if /sbin/ip -o route show dev "$1" | grep -q '^default' &&
14 /sbin/chkconfig iscsi; then
15 /etc/rc.d/init.d/iscsi start
16 fi
17 fi