FS#39670 - [open-vm-tools] *NetworkManager functions in /etc/vmware-tools/scripts/vmware broken
Attached to Project:
Community Packages
Opened by Florian Maunier (fmauNeko) - Saturday, 29 March 2014, 04:24 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 31 March 2014, 12:12 GMT
Opened by Florian Maunier (fmauNeko) - Saturday, 29 March 2014, 04:24 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 31 March 2014, 12:12 GMT
|
Details
The tests at line 53 and 126 are broken, because the test
utility can't handle pidof outputting 2+ PIDs with spaces
in-between. (Usually the system bus and the session bus)
The TranquilizeNetworkManager executes fine even though the test fails, but the WakeNetworkManager part will never wake NM up. Steps to reproduce: 1. Get a VM with NetworkManager 2. Suspend it 3. Resume it 4. No more network Output from the script: ~ LANG=C /etc/vmware-tools/scripts/vmware/network suspend-vm Sat Mar 29 00:18:57 EDT 2014 : Executing '/etc/vmware-tools/scripts/vmware/network' /etc/vmware-tools/scripts/vmware/network.orig: line 53: [: too many arguments method return sender=:1.3 -> dest=:1.84 reply_serial=2 ~ LANG=C /etc/vmware-tools/scripts/vmware/network resume-vm Sat Mar 29 00:18:07 EDT 2014 : Executing '/etc/vmware-tools/scripts/vmware/network' /etc/vmware-tools/scripts/vmware/network.orig: line 126: [: 531: binary operator expected Quick and dirty fix attached. |
This task depends upon
open-vm-tools_network_script_...