Skip to content

Commit

Permalink
Merge pull request #170 from mato/remove-bashism
Browse files Browse the repository at this point in the history
solo5-virtio-run: Remove bashism
  • Loading branch information
mato authored Mar 14, 2017
2 parents 292d559 + bb859ea commit 6c03243
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/run/solo5-run-virtio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ while true; do
-n)
NETIF="$2"
# Check dependencies
type ip &>/dev/null ||
type ifconfig &>/dev/null ||
type ip >/dev/null 2>&1 ||
type ifconfig >/dev/null 2>&1 ||
die "need ip or ifconfig installed"
ip a show ${NETIF} &>/dev/null ||
ifconfig ${NETIF} &>/dev/null ||
ip a show ${NETIF} >/dev/null 2>&1 ||
ifconfig ${NETIF} >/dev/null 2>&1 ||
die "no such network interface: ${NETIF}"
shift; shift
;;
Expand Down

0 comments on commit 6c03243

Please sign in to comment.