Using the standard reboot feature and upon effective reboot, got that error in Luci:
/usr/lib/lua/luci/ccache.lua:70: error loading module 'luci.controller.admin.system' from file '/usr/lib/lua/luci/controller/admin/system.lua':
/usr/lib/lua/luci/controller/admin/system.lua:402: '<eof>' expected near 'end'
stack traceback:
[C]: in function 'loader'
/usr/lib/lua/luci/ccache.lua:70: in function </usr/lib/lua/luci/ccache.lua:61>
[C]: in function 'require'
/usr/lib/lua/luci/dispatcher.lua:517: in function 'createindex'
/usr/lib/lua/luci/dispatcher.lua:544: in function 'createtree'
/usr/lib/lua/luci/dispatcher.lua:220: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:141: in function </usr/lib/lua/luci/dispatcher.lua:140>
Cut and paste error :
function action_poweroff()
luci.sys.call("/sbin/poweroff") end
end
But, for me, on my WRT3200ACM, as I test many LEDE releases (snapshot, RC, stable, david...), I don't know if it's my install process (sysupgrade -n F -v lede-mvebu-linksys-wrt3200acm-squashfs-factory.img) but I only have "LEDE" on both partitions:
This device (Linksys WRT3200ACM) has following partitions:
Partition 1: LEDE
Partition 2: LEDE <-- active
Would it be possible to add for example, the kernel version or a "uname -a" ?
I think that this would only be possible for the "active" partition. The inactive partition would require a carved name from the appropriate mtdxx and little cleanup to remove invalid chars.
Kernel version information is added in luci-mod-alt-reboot_git-17.080.69173-773734e27-7_all.ipk. If anyone has ideas on how can I fetch the proper OpenWrt/LEDE version/revision number from the non-mounted partition, please let me know. I've looked into the proper way to obtain this information on the running system a while back and the only suggestion back then was to screen scrape /etc/banner file, which will probably take a lot of upkeep in the long run.
Oops! Huge defect (copy-paste again)! If you've installed version lower than git-17.080.69173-773734e27-4, please don't use it and upgrade to latest version: opkg update; opkg upgrade luci-mod-advanced-reboot.
PS. Given that I can't test these builds while I'm away from home, I'm torn between suspending development for a few months or publishing untested builds.
Please try upgrading to luci-mod-advanced-reboot_git-17.080.69173-773734e27-5_all.ipk. I've fixed the issue with displaying incorrect information for kernel version of the stock firmware.
I'll send a pull request to the official repo when I'm done. Unless there're bugs, the only outstanding issue is tweaking UI to prompt user for confirmation when rebooting to alternative partition and shutting down. It might seem as a trivial fix, but would require some research -- first time coding in Lua or doing anything significant with Luci.
I'm not sure when 17.02 would fork, I hope not before I send the PR, but you won't see this package in 17.01.x repo anyways.