Skip to content

Commit

Permalink
Kernel switching module: hardening
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Dec 6, 2024
1 parent ae2789f commit d05b033
Show file tree
Hide file tree
Showing 6 changed files with 265 additions and 176 deletions.
22 changes: 11 additions & 11 deletions tools/json/config.system.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
"description": "Enable Armbian firmware upgrades",
"about": "This will enable Armbian kernel upgrades that are currently put on hold.",
"command": [
"armbian_fw_manipulate unhold"
"module_armbian_firmware unhold"
],
"status": "Stable",
"author": "@igorpecovnik",
"condition": "[[ -n \"$(apt-mark showhold)\" ]]"
"condition": "module_armbian_firmware hold status"
},
{
"id": "SY002",
"description": "Disable Armbian kernel upgrades",
"about": "Disable Armbian kernel/firmware upgrades",
"command": [
"armbian_fw_manipulate hold"
"module_armbian_firmware hold"
],
"status": "Stable",
"author": "@igorpecovnik",
"condition": "[[ -z \"$(apt-mark showhold)\" ]]"
"condition": "! module_armbian_firmware hold status"
},
{
"id": "SY003",
Expand Down Expand Up @@ -230,25 +230,25 @@
},
{
"id": "SY010",
"description": "Switch to rolling release",
"description": "Switch to rolling packages repository",
"about": "This will switch OS to rolling releases.",
"command": [
"set_rolling"
"module_armbian_firmware repository rolling"
],
"status": "Stable",
"author": "@igorpecovnik",
"condition": "grep -q 'apt.armbian.com' /etc/apt/sources.list.d/armbian.list && [[ -z \"$(apt-mark showhold)\" ]]"
"condition": "module_armbian_firmware repository stable status"
},
{
"id": "SY011",
"description": "Switch to stable release",
"description": "Switch to stable packages repository",
"about": "This will switch OS to stable releases",
"command": [
"set_stable"
"module_armbian_firmware repository stable"
],
"status": "Stable",
"author": "@igorpecovnik",
"condition": "grep -q 'beta.armbian.com' /etc/apt/sources.list.d/armbian.list && [[ -z \"$(apt-mark showhold)\" ]]"
"condition": "module_armbian_firmware repository rolling status"
},
{
"id": "SY012",
Expand Down Expand Up @@ -287,7 +287,7 @@
"description": "Install alternative kernels",
"about": "Switching between kernels might change functionality of your device. \n\nIt might fail to boot!",
"command": [
"switch_kernels"
"module_armbian_firmware select"
],
"status": "Stable",
"author": "@igorpecovnik",
Expand Down
84 changes: 0 additions & 84 deletions tools/modules/system/armbian_fw_manipulate.sh

This file was deleted.

Loading

0 comments on commit d05b033

Please sign in to comment.