*/
function handleStatus() {
poll.add(function() {
- L.resolveDefault(fs.stat('/var/run/travelmate.refresh'), null).then(function(res) {
+ L.resolveDefault(fs.stat('/var/state/travelmate.refresh'), null).then(function(res) {
if (res) {
- L.resolveDefault(fs.read_direct('/var/run/travelmate.refresh'), null).then(function(res) {
- fs.remove('/var/run/travelmate.refresh');
+ L.resolveDefault(fs.read_direct('/var/state/travelmate.refresh'), null).then(function(res) {
+ fs.remove('/var/state/travelmate.refresh');
if (res && res === 'ui_reload') {
location.reload();
}
"description": "Grant access to LuCI app travelmate",
"write": {
"file": {
- "/var/run/travelmate.refresh": [ "write" ]
+ "/var/state/travelmate.refresh": [ "write" ]
},
"uci": [ "travelmate" ]
},
"file": {
"/etc/travelmate/*.login": [ "list" ],
"/var/run/travelmate.pid": [ "read" ],
- "/var/run/travelmate.refresh": [ "read" ],
+ "/var/state/travelmate.refresh": [ "read" ],
"/tmp/trm_runtime.json": [ "read" ],
"/sbin/logread -e trm-": [ "exec" ],
"/usr/sbin/logread -e trm-": [ "exec" ],