mirror of https://github.com/OpenIPC/firmware.git
[no ci] Update wifibroadcast-ng
parent
f4686db177
commit
fef50b8a91
|
@ -116,6 +116,7 @@ start() {
|
||||||
sleep 1
|
sleep 1
|
||||||
video_settings
|
video_settings
|
||||||
touch /etc/system.ok
|
touch /etc/system.ok
|
||||||
|
killall -1 majestic
|
||||||
fi
|
fi
|
||||||
|
|
||||||
stop
|
stop
|
||||||
|
|
|
@ -9,6 +9,7 @@ async function loadYAML(url, setter) {
|
||||||
async function uploadYAML(data, location) {
|
async function uploadYAML(data, location) {
|
||||||
const yamlData = jsyaml.dump(data);
|
const yamlData = jsyaml.dump(data);
|
||||||
await fetch('/upload', {
|
await fetch('/upload', {
|
||||||
|
method: 'POST',
|
||||||
headers: { 'File-Location': location },
|
headers: { 'File-Location': location },
|
||||||
body: yamlData
|
body: yamlData
|
||||||
});
|
});
|
||||||
|
@ -16,6 +17,7 @@ async function uploadYAML(data, location) {
|
||||||
|
|
||||||
async function runCommand(command) {
|
async function runCommand(command) {
|
||||||
await fetch('/command', {
|
await fetch('/command', {
|
||||||
|
method: 'POST',
|
||||||
headers: { 'Run-Command': command }
|
headers: { 'Run-Command': command }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue