Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 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