Stop using the [ -z "$@" ] test, use [ $# = 0 ] instead, #176554.

This commit is contained in:
Roy Marples
2007-04-30 13:19:26 +00:00
parent 0380d98d7d
commit c3d899714c
5 changed files with 7 additions and 5 deletions

View File

@@ -80,7 +80,7 @@ are_atmclip_svcs_running() {
clip_pre_start() {
eval $(_get_array "clip_${IFVAR}")
[ -z "$@" ] && return 0
[ $# = 0 ] && return 0
if [ ! -r /proc/net/atm/arp ] ; then
modprobe clip && sleep 2
@@ -110,7 +110,7 @@ clip_pre_start() {
clip_post_start() {
eval $(_get_array "clip_${IFVAR}")
[ -z "$@" ] && return 0
[ $# = 0 ] && return 0
are_atmclip_svcs_running || return 1