diff options
author | Simon Rettberg | 2021-10-20 16:11:19 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-10-20 16:11:19 +0200 |
commit | c2d8cd73b32f7fe54df4f46995f9460c2d0a6f26 (patch) | |
tree | 50be96f154878ca8e1fc80667e7125ed6874aa60 | |
parent | [vmchooser2] i3: Append (keine GUI) instead of replacing entire title (diff) | |
download | mltk-c2d8cd73b32f7fe54df4f46995f9460c2d0a6f26.tar.gz mltk-c2d8cd73b32f7fe54df4f46995f9460c2d0a6f26.tar.xz mltk-c2d8cd73b32f7fe54df4f46995f9460c2d0a6f26.zip |
[system-tweaks] Add module that sets desired sysctl options
-rwxr-xr-x | core/bin/setup_target | 2 | ||||
-rw-r--r-- | core/modules/system-tweaks/data/etc/sysctl.d/90-openslx.conf (renamed from core/modules/systemd/data/lib/sysctl.d/50-default.conf) | 9 | ||||
-rw-r--r-- | core/modules/system-tweaks/module.build | 0 | ||||
-rw-r--r-- | core/modules/system-tweaks/module.conf | 0 | ||||
l--------- | core/targets/bwlp/system-tweaks | 1 |
5 files changed, 2 insertions, 10 deletions
diff --git a/core/bin/setup_target b/core/bin/setup_target index 5ad316b4..4ea9b824 100755 --- a/core/bin/setup_target +++ b/core/bin/setup_target @@ -352,7 +352,7 @@ scan_target() { [ -L "$item" ] || continue base="$( basename "$item" )" real="$( readlink -f "$item" )" - if [ -s "$item/module.conf" ]; then + if [ -f "$item/module.conf" ]; then if [ -n "${MODULE_PATHS["$base"]}" ] \ && [ "${MODULE_PATHS["$base"]}" != "$real" ]; then perror "$base exists in multiple sub-targets and links to different modules\n1: $real\n2: ${MODULE_PATHS["$base"]}" diff --git a/core/modules/systemd/data/lib/sysctl.d/50-default.conf b/core/modules/system-tweaks/data/etc/sysctl.d/90-openslx.conf index 6ece04ce..19752768 100644 --- a/core/modules/systemd/data/lib/sysctl.d/50-default.conf +++ b/core/modules/system-tweaks/data/etc/sysctl.d/90-openslx.conf @@ -1,12 +1,3 @@ -# This file is part of systemd. -# -# systemd is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or -# (at your option) any later version. - -# See sysctl.d(5) and core(5) for for details. - # System Request functionality of the kernel (SYNC) kernel.sysrq = 1 diff --git a/core/modules/system-tweaks/module.build b/core/modules/system-tweaks/module.build new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/core/modules/system-tweaks/module.build diff --git a/core/modules/system-tweaks/module.conf b/core/modules/system-tweaks/module.conf new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/core/modules/system-tweaks/module.conf diff --git a/core/targets/bwlp/system-tweaks b/core/targets/bwlp/system-tweaks new file mode 120000 index 00000000..5295159d --- /dev/null +++ b/core/targets/bwlp/system-tweaks @@ -0,0 +1 @@ +../../modules/system-tweaks
\ No newline at end of file |