Search
j0ke.net Open Build Service
>
Projects
>
home:jg
:
playground
>
iscsi-initiator-utils
> 04-iscsi
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 04-iscsi of Package iscsi-initiator-utils
#!/bin/sh export LC_ALL=C if [ "$2" = "down" ]; then if ! /sbin/ip route ls | grep -q ^default && [ -f /var/lock/subsys/iscsi ]; then /etc/rc.d/init.d/iscsi stop fi fi if [ "$2" = "up" ]; then if /sbin/ip -o route show dev "$1" | grep -q '^default' && /sbin/chkconfig iscsi; then /etc/rc.d/init.d/iscsi start fi fi