1e348ddd45
The reboot page should be delayed a little to give the browser time for fetching assets (like the stylesheet). This adds a two second delay. Unfortunately, I couldn't think of a sane way to do this within a luci controller. This patch forks the process. The parent will continue rendering the page for the browser while the child will sleep and then reboot the device. For this to work reliable the child needs to close stdout before sleeping so the webserver closes the connection to the browser. This, again, required a hack as lua does not allow closing std filehandles, when prevented using luci.reboot() which was calling os.execute() and that function will not work with stdout closed. |
||
---|---|---|
.. | ||
gluon-alfred | ||
gluon-autoupdater | ||
gluon-config-mode | ||
gluon-core | ||
gluon-cron | ||
gluon-ebtables | ||
gluon-ebtables-filter-multicast | ||
gluon-ebtables-filter-ra-dhcp | ||
gluon-location | ||
gluon-lock-password | ||
gluon-luci-admin | ||
gluon-luci-autoupdater | ||
gluon-luci-theme | ||
gluon-mesh-batman-adv | ||
gluon-mesh-vpn-fastd | ||
gluon-next-node | ||
gluon-radvd | ||
gluon-simple-tc |