Implement script to download and upload OpenWrt config files and more...

This commit is contained in:
Albrecht Lohofener
2024-02-19 23:55:54 +01:00
parent 764efb3177
commit 9f501cb120
13 changed files with 136 additions and 13 deletions
@@ -0,0 +1,8 @@
{
"name": "1 Backup OpenWrt config",
"description": "Backup OpenWrt config. WARNING: OpenWrt will be stopped during this operation.",
"script_path": "/run/backup_openwrt_config.sh",
"output_files": [
"/tmp/openwrt_config.tar.gz"
]
}
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "Apply factory reset",
"description": "Hard factory reset of Openwrt",
"script_path": "/run/qemu_qmp.sh -f"
"name": "99 Factory reset",
"description": "Hard factory reset of Openwrt. WARNING: OpenWrt will be stopped during this operation.",
"script_path": "/run/factory_reset.sh"
}
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "Reset OpenWRT",
"description": "Hard reset of Openwrt VM",
"name": "98 Reset OpenWrt",
"description": "Hard reset of OpenWrt VM",
"script_path": "/run/qemu_qmp.sh -r"
}
@@ -0,0 +1,15 @@
{
"name": "2 Restore OpenWrt config",
"description": "Restore OpenWrt config. WARNING: OpenWrt will be stopped during this operation.",
"script_path": "/run/restore_openwrt_config.sh",
"parameters": [
{
"name": "File upload",
"param": "--file_upload",
"type": "file_upload",
"description": "File upload testing",
"ui": {
"width_weight": 2
}
}]
}
+6
View File
@@ -0,0 +1,6 @@
{
"name": "4 Start OpenWrt",
"description": "Start OpenWrt VM",
"script_path": "supervisorctl start openwrt"
}
+6
View File
@@ -0,0 +1,6 @@
{
"name": "5 Stop OpenWrt",
"description": "Stop OpenWrt VM",
"script_path": "supervisorctl stop openwrt"
}