From 5f31c74b8a9c168a15db3704a387364c39429abc Mon Sep 17 00:00:00 2001 From: Dan HorĂ¡k Date: Wed, 5 May 2010 08:52:20 +0200 Subject: drop /usr from PATH The scripts can be run in an environment where /usr is not mounted yet. --- dasdconf.sh | 2 +- device_cio_free | 2 +- zfcpconf.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dasdconf.sh b/dasdconf.sh index fb3ac90..bfb6af3 100644 --- a/dasdconf.sh +++ b/dasdconf.sh @@ -14,7 +14,7 @@ CHANNEL=${DEVPATH##*/} CONFIG=/etc/dasd.conf -PATH=/sbin:/bin:/usr/sbin:/usr/bin +PATH=/sbin:/bin export PATH warn() { diff --git a/device_cio_free b/device_cio_free index 44c3e6b..381c0a0 100644 --- a/device_cio_free +++ b/device_cio_free @@ -27,7 +27,7 @@ ZFCPCONFIG=/etc/zfcp.conf ZNETCONFIG=/etc/ccw.conf BLACKLIST=/proc/cio_ignore VERBOSE= -PATH=/bin:/usr/bin:/sbin:/usr/sbin +PATH=/bin:/sbin ALL_DEVICES= # list of all unblocked devices WAITING_TIMEOUT=60 # maximum time to wait for all devices to appear WAITING_TOTAL=0 # actual time spent waiting for devices diff --git a/zfcpconf.sh b/zfcpconf.sh index 4eb1ab6..4e7dc78 100644 --- a/zfcpconf.sh +++ b/zfcpconf.sh @@ -19,7 +19,7 @@ # echo 0x5022000000000000 > /sys/bus/ccw/drivers/zfcp/0.0.4000/0x5005076300c213e9/unit_add CONFIG=/etc/zfcp.conf -PATH=/bin:/usr/bin:/sbin:/usr/sbin +PATH=/bin:/sbin if [ -f "$CONFIG" ]; then if [ ! -d /sys/bus/ccw/drivers/zfcp ]; then -- cgit