Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#1941 - hotplug: 'bind' actions breaks 3g proto #8447

Closed
openwrt-bot opened this issue Nov 9, 2018 · 0 comments
Closed

FS#1941 - hotplug: 'bind' actions breaks 3g proto #8447

openwrt-bot opened this issue Nov 9, 2018 · 0 comments
Labels

Comments

@openwrt-bot
Copy link

papenkin:

Linux 4.12 added the actions "bind" and "unbind" for notification of devices being bound to, or released from, a driver. After 'add' action hotplug sends
invoke: {"objid":-701183341,"method":"notify_proto","data":{"action":5,"available":true,"interface":"lte"}}
But then 'bind' action apperas, and hotplug sends
invoke: {"objid":-701183341,"method":"notify_proto","data":{"action":5,"available":false,"interface":"lte"}}
because script marks interface as available only on add action (package/network/utils/comgt/files/3g.usb)

if [ "${dev##/}" = "${tty##/}" ]; then
if [ "$ACTION" = add ]; then
available=1
else
available=0
fi
proto_set_available "$cfg" $available
fi

Dirty hack is

if [ "$ACTION" = add -o "$ACTION" = bind ]; then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant