We don't need complicated script for this, we can just set required attributes using udev rules.
Quectel advises to configure the USB autosuspend feature as: - power/control: auto - power/autosuspend_delay_ms: 3000 Futhermore, the following settings are also needed: - power/wakeup: enabled - power/persist: 0 - avoid_reset_quirk: 1