uqmi: dont use proto_block_restart

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42835
owl
John Crispin 2014-10-08 08:00:45 +00:00
parent e53734ddef
commit bb64826bdb
1 changed files with 3 additions and 5 deletions

View File

@ -41,13 +41,13 @@ proto_qmi_setup() {
[ -n "$device" ] || { [ -n "$device" ] || {
echo "No control device specified" echo "No control device specified"
proto_notify_error "$interface" NO_DEVICE proto_notify_error "$interface" NO_DEVICE
proto_block_restart "$interface" proto_set_available "$interface" 0
return 1 return 1
} }
[ -c "$device" ] || { [ -c "$device" ] || {
echo "The specified control device does not exist" echo "The specified control device does not exist"
proto_notify_error "$interface" NO_DEVICE proto_notify_error "$interface" NO_DEVICE
proto_block_restart "$interface" proto_set_available "$interface" 0
return 1 return 1
} }
@ -57,7 +57,7 @@ proto_qmi_setup() {
[ -n "$ifname" ] || { [ -n "$ifname" ] || {
echo "The interface could not be found." echo "The interface could not be found."
proto_notify_error "$interface" NO_IFACE proto_notify_error "$interface" NO_IFACE
proto_block_restart "$interface" proto_set_available "$interface" 0
return 1 return 1
} }
@ -79,7 +79,6 @@ proto_qmi_setup() {
[ -n "$apn" ] || { [ -n "$apn" ] || {
echo "No APN specified" echo "No APN specified"
proto_notify_error "$interface" NO_APN proto_notify_error "$interface" NO_APN
proto_block_restart "$interface"
return 1 return 1
} }
@ -99,7 +98,6 @@ proto_qmi_setup() {
[ $? -ne 0 ] && { [ $? -ne 0 ] && {
echo "Unable to obtain client ID" echo "Unable to obtain client ID"
proto_notify_error "$interface" NO_CID proto_notify_error "$interface" NO_CID
proto_block_restart "$interface"
return 1 return 1
} }