mirror of
https://github.com/AlbrechtL/openwrt-docker.git
synced 2026-10-15 00:01:23 +00:00
Implement script to download and upload OpenWrt config files and more...
This commit is contained in:
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "4 Start OpenWrt",
|
||||
"description": "Start OpenWrt VM",
|
||||
"script_path": "supervisorctl start openwrt"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "5 Stop OpenWrt",
|
||||
"description": "Stop OpenWrt VM",
|
||||
"script_path": "supervisorctl stop openwrt"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user