summaryrefslogtreecommitdiff
path: root/test/TEST-30-ISCSI
diff options
context:
space:
mode:
authorAmadeusz Żołnowski <aidecoe@aidecoe.name>2010-08-18 17:29:44 +0200
committerHarald Hoyer <harald@redhat.com>2010-08-23 11:54:09 +0200
commitf3af7bd66b6778e379ff8cf8a3594e23e71f7ad7 (patch)
treee2f951ee95de1060904812485a82eb48e1082b88 /test/TEST-30-ISCSI
parent5fce1ef0c923bc77a346c5232b90b855ee403cf1 (diff)
downloaddracut-f3af7bd66b6778e379ff8cf8a3594e23e71f7ad7.tar.gz
dracut-f3af7bd66b6778e379ff8cf8a3594e23e71f7ad7.tar.bz2
dracut-f3af7bd66b6778e379ff8cf8a3594e23e71f7ad7.zip
use 'type' built-in instead of external cmd 'which' in every Bash script
Diffstat (limited to 'test/TEST-30-ISCSI')
-rwxr-xr-xtest/TEST-30-ISCSI/test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/TEST-30-ISCSI/test.sh b/test/TEST-30-ISCSI/test.sh
index 637f264e..a0b85c31 100755
--- a/test/TEST-30-ISCSI/test.sh
+++ b/test/TEST-30-ISCSI/test.sh
@@ -161,7 +161,7 @@ test_setup() {
instmods iscsi_tcp crc32c ipv6
inst ./targets /etc/iscsi/targets
[ -f /etc/netconfig ] && dracut_install /etc/netconfig
- which dhcpd >/dev/null 2>&1 && dracut_install dhcpd
+ type -P dhcpd >/dev/null && dracut_install dhcpd
[ -x /usr/sbin/dhcpd3 ] && inst /usr/sbin/dhcpd3 /usr/sbin/dhcpd
inst ./server-init /sbin/init
inst ./hosts /etc/hosts