opkg: correct the name of the state changed callback and run it when appropriate