diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2006-09-05 10:54:36 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2006-09-05 10:54:36 +0000 | 
| commit | 117091aff7a9416b9fe58214b8a9118cd88a9fb3 (patch) | |
| tree | 64a8fd21424e15925cd632f9bdb4e6dc3ff40e02 /scripts/bluetooth.init | |
| parent | 4e5822f683301d9494450eb559bc9b8d0f10bab9 (diff) | |
More compatible usage of test
Diffstat (limited to 'scripts/bluetooth.init')
| -rw-r--r-- | scripts/bluetooth.init | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/scripts/bluetooth.init b/scripts/bluetooth.init index 82cd68cf..fad223fd 100644 --- a/scripts/bluetooth.init +++ b/scripts/bluetooth.init @@ -45,7 +45,7 @@ PAND_OPTIONS=""  case "$1" in    start)  	echo -n "Starting $DESC:" -	if $HCID_ENABLE && [ -x "$HCID_EXEC" -a -f "$HCID_CONFIG" ] ; then +	if $HCID_ENABLE && [ -x "$HCID_EXEC" ] && [ -f "$HCID_CONFIG" ] ; then  		$HCID_EXEC -f $HCID_CONFIG  		echo -n " $HCID_NAME"  	fi @@ -61,15 +61,15 @@ case "$1" in  		$HID2HCI_EXEC --tohci > /dev/null 2>&1 || true  		echo -n " $HID2HCI_NAME"  	fi -	if $RFCOMM_ENABLE && [ -x "$RFCOMM_EXEC" -a -f "$RFCOMM_CONFIG" ] ; then +	if $RFCOMM_ENABLE && [ -x "$RFCOMM_EXEC" ] && [ -f "$RFCOMM_CONFIG" ] ; then  		$RFCOMM_EXEC -f $RFCOMM_CONFIG bind all || true  		echo -n " $RFCOMM_NAME"  	fi -	if $DUND_ENABLE && [ -x "$DUND_EXEC" -a -n "$DUND_OPTIONS" ] ; then +	if $DUND_ENABLE && [ -x "$DUND_EXEC" ] && [ -n "$DUND_OPTIONS" ] ; then  		$DUND_EXEC $DUND_OPTIONS  		echo -n " $DUND_NAME"  	fi -	if $PAND_ENABLE && [ -x "$PAND_EXEC" -a -n "$PAND_OPTIONS" ] ; then +	if $PAND_ENABLE && [ -x "$PAND_EXEC" ] && [ -n "$PAND_OPTIONS" ] ; then  		$PAND_EXEC $PAND_OPTIONS  		echo -n " $PAND_NAME"  	fi | 
