mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 11:19:22 +01:00
bashrc & zshrc: update sysctl functions
This commit is contained in:
parent
c22386c5d4
commit
6dd5f2aabd
@ -823,6 +823,7 @@ function sysctl-mikaela() {
|
||||
set -x
|
||||
sysctl kernel.core_pattern=%e-%p-%h.core
|
||||
sysctl vm.swappiness=1
|
||||
sysctl net.ipv6.bindv6only=1
|
||||
sysctl net.ipv6.conf.eth0.use_tempaddr=2
|
||||
sysctl net.ipv6.conf.wlan0.use_tempaddr=2
|
||||
echo 'If network-manager is used, see /etc/NetworkManager/system-connections/<connection>'
|
||||
@ -834,6 +835,7 @@ function sysctl-mikaela-run() {
|
||||
set -x
|
||||
echo kernel.core_pattern = %e-%p-%h.core >> /etc/sysctl.conf
|
||||
echo vm.swappiness = 1 >> /etc/sysctl.conf
|
||||
echo net.ipv6.bindv6only=1 >> /etc/sysctl.conf
|
||||
echo net.ipv6.conf.eth0.use_tempaddr=2 >> /etc/sysctl.conf
|
||||
echo net.ipv6.conf.wlan0.use_tempaddr=2 >> /etc/sysctl.conf
|
||||
sysctl -p
|
||||
|
2
rc/zshrc
2
rc/zshrc
@ -801,6 +801,7 @@ function sysctl-mikaela() {
|
||||
set -x
|
||||
sysctl kernel.core_pattern=%e-%p-%h.core
|
||||
sysctl vm.swappiness=1
|
||||
sysctl net.ipv6.bindv6only=1
|
||||
sysctl net.ipv6.conf.eth0.use_tempaddr=2
|
||||
sysctl net.ipv6.conf.wlan0.use_tempaddr=2
|
||||
echo 'If network-manager is used, see /etc/NetworkManager/system-connections/<connection>'
|
||||
@ -812,6 +813,7 @@ function sysctl-mikaela-run() {
|
||||
set -x
|
||||
echo kernel.core_pattern = %e-%p-%h.core >> /etc/sysctl.conf
|
||||
echo vm.swappiness = 1 >> /etc/sysctl.conf
|
||||
echo net.ipv6.bindv6only=1 >> /etc/sysctl.conf
|
||||
echo net.ipv6.conf.eth0.use_tempaddr=2 >> /etc/sysctl.conf
|
||||
echo net.ipv6.conf.wlan0.use_tempaddr=2 >> /etc/sysctl.conf
|
||||
echo 'If network-manager is used, see /etc/NetworkManager/system-connections/<connection>'
|
||||
|
Loading…
Reference in New Issue
Block a user