| 
 | 
 
Thanks for reminding me to remove gpio_sunxi module. It is not better than standard sysfs gpio interface and Allwinner already stopped using it. 
 
About your problem: oppai is right, shutdown in GUI actually does suspend. It was discussed before and I won't change it to shutdown. Your problem can be easily solved by using systemd service file. For example, LED systemd service file solves almost same problem, so you can reuse it: 
https://github.com/jernejsk/Open ... nxi-suspend.service 
 
ExecStart is executed when system goes to suspend and ExecStop is executed when system is resumed. 
 
According to this page: 
http://wiki.openelec.tv/index.php/Mounting_network_shares 
 
you should place service file in /storage/.config/system.d/ and then execute command "systemctl enable <yourservice>.service" 
 
Be aware that I didn't try this, so there might be some additional steps. 
 
 |   
 
 
 
 |