summaryrefslogtreecommitdiff
path: root/src/completion
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-06-10 13:07:38 +0200
committerGitHub <noreply@github.com>2024-06-10 13:07:38 +0200
commiteaf20bb54c62f0eff0879d538cc1e9c52cabf07a (patch)
tree8c3f8f5749417164618f6dc68968b92ed648b367 /src/completion
parent82607438d6df5291c581d802c7a2a98eabe084ff (diff)
parentf030464952168b553b5b3e29b461d437c2642a9b (diff)
downloadvyos-1x-eaf20bb54c62f0eff0879d538cc1e9c52cabf07a.tar.gz
vyos-1x-eaf20bb54c62f0eff0879d538cc1e9c52cabf07a.zip
Merge pull request #3614 from nvollmar/T6219
T6219: Add support for container sysctl parameter
Diffstat (limited to 'src/completion')
-rwxr-xr-xsrc/completion/list_container_sysctl_parameters.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/completion/list_container_sysctl_parameters.sh b/src/completion/list_container_sysctl_parameters.sh
new file mode 100755
index 000000000..cf8d006e5
--- /dev/null
+++ b/src/completion/list_container_sysctl_parameters.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# Copyright (C) 2024 VyOS maintainers and contributors
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 or later as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+declare -a vals
+eval "vals=($(/sbin/sysctl -N -a|grep -E '^(fs.mqueue|net)\.|^(kernel.msgmax|kernel.msgmnb|kernel.msgmni|kernel.sem|kernel.shmall|kernel.shmmax|kernel.shmmni|kernel.shm_rmid_forced)$'))"
+echo ${vals[@]}
+exit 0