I have a /usr/lib/lua/luci/controller/my_page.lua which produces the My Page menu entry and a /pr_home/my_page.sh script that produces the html page I want to see when I clic My Page.
All works fine, but currently I have to manually run the .sh script with luci-app-commands before clicking the menu; so I spent some time surfing (without success) the forum and the web to find a way to directly run it when I clic My Page: is it possible? Do you have any hint?