mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-01-03 08:32:51 +01:00
bashrc & zshrc: fix sysctl-... again
This commit is contained in:
parent
e9e6c82697
commit
7a0684a203
4
bashrc
4
bashrc
@ -827,8 +827,8 @@ function sysctl-mikaela-run() {
|
|||||||
set -x
|
set -x
|
||||||
echo kernel.core_pattern = %e-%p-%h.core >> /etc/sysctl.conf
|
echo kernel.core_pattern = %e-%p-%h.core >> /etc/sysctl.conf
|
||||||
echo vm.swappiness = 1 >> /etc/sysctl.conf
|
echo vm.swappiness = 1 >> /etc/sysctl.conf
|
||||||
echo sysctl net.ipv6.conf.eth0.use_tempaddr=2 >> /etc/sysctl.conf
|
echo net.ipv6.conf.eth0.use_tempaddr=2 >> /etc/sysctl.conf
|
||||||
echo sysctl net.ipv6.conf.wlan0.use_tempaddr=2 >> /etc/sysctl.conf
|
echo net.ipv6.conf.wlan0.use_tempaddr=2 >> /etc/sysctl.conf
|
||||||
sysctl -p
|
sysctl -p
|
||||||
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
|
||||||
|
4
zshrc
4
zshrc
@ -805,8 +805,8 @@ function sysctl-mikaela-run() {
|
|||||||
set -x
|
set -x
|
||||||
echo kernel.core_pattern = %e-%p-%h.core >> /etc/sysctl.conf
|
echo kernel.core_pattern = %e-%p-%h.core >> /etc/sysctl.conf
|
||||||
echo vm.swappiness = 1 >> /etc/sysctl.conf
|
echo vm.swappiness = 1 >> /etc/sysctl.conf
|
||||||
echo sysctl net.ipv6.conf.eth0.use_tempaddr=2 >> /etc/sysctl.conf
|
echo net.ipv6.conf.eth0.use_tempaddr=2 >> /etc/sysctl.conf
|
||||||
echo sysctl net.ipv6.conf.wlan0.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>'
|
echo 'If network-manager is used, see /etc/NetworkManager/system-connections/<connection>'
|
||||||
sysctl -p
|
sysctl -p
|
||||||
set +x
|
set +x
|
||||||
|
Loading…
Reference in New Issue
Block a user