mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-26 05:09:23 +01:00
rc: sysctl-mikaela-run: use sysctl.d
This commit is contained in:
parent
de26949c16
commit
877e8a59cb
12
rc/bashrc
12
rc/bashrc
@ -845,12 +845,14 @@ function sysctl-mikaela() {
|
|||||||
# Function to permanently set sysctl options which I want.
|
# Function to permanently set sysctl options which I want.
|
||||||
function sysctl-mikaela-run() {
|
function sysctl-mikaela-run() {
|
||||||
set -x
|
set -x
|
||||||
echo kernel.core_pattern = %e-%p-%h.core >> /etc/sysctl.conf
|
mkdir -p /etc/sysctl.d/
|
||||||
echo vm.swappiness = 1 >> /etc/sysctl.conf
|
echo kernel.core_pattern = %e-%p-%h.core > /etc/sysctl.d/60-mikaela.conf
|
||||||
echo net.ipv6.bindv6only=1 >> /etc/sysctl.conf
|
echo vm.swappiness = 10 >> /etc/sysctl.d/60-mikaela.conf
|
||||||
echo net.ipv6.conf.eth0.use_tempaddr=2 >> /etc/sysctl.conf
|
echo net.ipv6.bindv6only=1 >> /etc/sysctl.d/60-mikaela.conf
|
||||||
echo net.ipv6.conf.wlan0.use_tempaddr=2 >> /etc/sysctl.conf
|
echo net.ipv6.conf.eth0.use_tempaddr=2 >> /etc/sysctl.d/60-mikaela.conf
|
||||||
|
echo net.ipv6.conf.wlan0.use_tempaddr=2 >> /etc/sysctl.d/60-mikaela.conf
|
||||||
sysctl -p
|
sysctl -p
|
||||||
|
service procps start
|
||||||
echo 'If network-manager is used, see /etc/NetworkManager/system-connections/<connection>'
|
echo 'If network-manager is used, see /etc/NetworkManager/system-connections/<connection>'
|
||||||
set +x
|
set +x
|
||||||
}
|
}
|
||||||
|
14
rc/zshrc
14
rc/zshrc
@ -823,13 +823,15 @@ function sysctl-mikaela() {
|
|||||||
# Function to permanently set sysctl options which I want.
|
# Function to permanently set sysctl options which I want.
|
||||||
function sysctl-mikaela-run() {
|
function sysctl-mikaela-run() {
|
||||||
set -x
|
set -x
|
||||||
echo kernel.core_pattern = %e-%p-%h.core >> /etc/sysctl.conf
|
mkdir -p /etc/sysctl.d/
|
||||||
echo vm.swappiness = 1 >> /etc/sysctl.conf
|
echo kernel.core_pattern = %e-%p-%h.core > /etc/sysctl.d/60-mikaela.conf
|
||||||
echo net.ipv6.bindv6only=1 >> /etc/sysctl.conf
|
echo vm.swappiness = 10 >> /etc/sysctl.d/60-mikaela.conf
|
||||||
echo net.ipv6.conf.eth0.use_tempaddr=2 >> /etc/sysctl.conf
|
echo net.ipv6.bindv6only=1 >> /etc/sysctl.d/60-mikaela.conf
|
||||||
echo net.ipv6.conf.wlan0.use_tempaddr=2 >> /etc/sysctl.conf
|
echo net.ipv6.conf.eth0.use_tempaddr=2 >> /etc/sysctl.d/60-mikaela.conf
|
||||||
echo 'If network-manager is used, see /etc/NetworkManager/system-connections/<connection>'
|
echo net.ipv6.conf.wlan0.use_tempaddr=2 >> /etc/sysctl.d/60-mikaela.conf
|
||||||
sysctl -p
|
sysctl -p
|
||||||
|
service procps start
|
||||||
|
echo 'If network-manager is used, see /etc/NetworkManager/system-connections/<connection>'
|
||||||
set +x
|
set +x
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user