mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-29 06:29:36 +01:00
parent
6c64bbb367
commit
412bbf2f54
8
bashrc
8
bashrc
@ -817,8 +817,13 @@ function sysctl-mikaela() {
|
||||
set -x
|
||||
sysctl kernel.core_pattern=%e-%p-%h.core
|
||||
sysctl vm.swappiness=1
|
||||
sysctl net.ipv6.conf.eth0.use_tempaddr=2
|
||||
sysctl net.ipv6.conf.wlan0.use_tempaddr=2
|
||||
echo 'echo kernel.core_pattern = %e-%p-%h.core >> /etc/sysctl.conf'
|
||||
echo 'echo vm.swappiness = 1 >> /etc/sysctl.conf'
|
||||
echo 'sysctl net.ipv6.conf.eth0.use_tempaddr=2'
|
||||
echo 'sysctl net.ipv6.conf.wlan0.use_tempaddr=2'
|
||||
echo 'If network-manager is used, see /etc/NetworkManager/system-connections/<connection>'
|
||||
set +x
|
||||
}
|
||||
|
||||
@ -827,7 +832,10 @@ 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 'sysctl net.ipv6.conf.eth0.use_tempaddr=2'
|
||||
echo 'sysctl net.ipv6.conf.wlan0.use_tempaddr=2'
|
||||
sysctl -p
|
||||
echo 'If network-manager is used, see /etc/NetworkManager/system-connections/<connection>'
|
||||
set +x
|
||||
}
|
||||
|
||||
|
8
zshrc
8
zshrc
@ -795,8 +795,13 @@ function sysctl-mikaela() {
|
||||
set -x
|
||||
sysctl kernel.core_pattern=%e-%p-%h.core
|
||||
sysctl vm.swappiness=1
|
||||
sysctl net.ipv6.conf.eth0.use_tempaddr=2
|
||||
sysctl net.ipv6.conf.wlan0.use_tempaddr=2
|
||||
echo 'echo kernel.core_pattern = %e-%p-%h.core >> /etc/sysctl.conf'
|
||||
echo 'echo vm.swappiness = 1 >> /etc/sysctl.conf'
|
||||
echo 'sysctl net.ipv6.conf.eth0.use_tempaddr=2'
|
||||
echo 'sysctl net.ipv6.conf.wlan0.use_tempaddr=2'
|
||||
echo 'If network-manager is used, see /etc/NetworkManager/system-connections/<connection>'
|
||||
set +x
|
||||
}
|
||||
|
||||
@ -805,6 +810,9 @@ 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 'sysctl net.ipv6.conf.eth0.use_tempaddr=2'
|
||||
echo 'sysctl net.ipv6.conf.wlan0.use_tempaddr=2'
|
||||
echo 'If network-manager is used, see /etc/NetworkManager/system-connections/<connection>'
|
||||
sysctl -p
|
||||
set +x
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user