mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
Update
This commit is contained in:
parent
a461012f35
commit
ddbe4e8859
10 changed files with 37 additions and 11 deletions
5
boot/loader/entries/linux-ck.conf
Executable file
5
boot/loader/entries/linux-ck.conf
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
title Arch Linux [Ck Kernel] - Encrypted
|
||||
linux /vmlinuz-linux-ck-skylake
|
||||
initrd /intel-ucode.img
|
||||
initrd /initramfs-linux-ck-skylake.img
|
||||
options cryptdevice=UUID=65127d08-139a-4e52-8a7b-c8c0911f460c:lvm root=UUID=fb5fc334-d17a-4b2d-8c6f-8d9727ca58f6 resume=UUID=f61d451c-3feb-4bc1-b0c0-b5eab3490522 mitigations=off quiet rw
|
||||
5
boot/loader/entries/linux-zen-fallback.conf
Executable file
5
boot/loader/entries/linux-zen-fallback.conf
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
title Arch Linux - Encrypted
|
||||
linux /vmlinuz-linux-zen
|
||||
initrd /intel-ucode.img
|
||||
initrd /initramfs-linux-zen-fallback.img
|
||||
options cryptdevice=PARTUUID=379cfbc1-1611-4d61-ba80-dafac35f1c1a:lvm root=UUID=fb5fc334-d17a-4b2d-8c6f-8d9727ca58f6 quiet rw
|
||||
|
|
@ -2,4 +2,4 @@ title Arch Linux [Zen Kernel] - Encrypted
|
|||
linux /vmlinuz-linux-zen
|
||||
initrd /intel-ucode.img
|
||||
initrd /initramfs-linux-zen.img
|
||||
options cryptdevice=UUID=65127d08-139a-4e52-8a7b-c8c0911f460c:lvm root=UUID=fb5fc334-d17a-4b2d-8c6f-8d9727ca58f6 resume=UUID=8b9a5989-9817-4805-8d73-cf77ec730e06 zswap.enabled=1 zswap.compressor=lz4 apparmor=1 security=apparmor mitigations=off quiet rw
|
||||
options cryptdevice=UUID=65127d08-139a-4e52-8a7b-c8c0911f460c:lvm root=UUID=fb5fc334-d17a-4b2d-8c6f-8d9727ca58f6 resume=UUID=f61d451c-3feb-4bc1-b0c0-b5eab3490522 mitigations=off quiet rw
|
||||
|
|
|
|||
5
loader/entries/linux-ck.conf
Executable file
5
loader/entries/linux-ck.conf
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
title Arch Linux [Ck Kernel] - Encrypted
|
||||
linux /vmlinuz-linux-ck-skylake
|
||||
initrd /intel-ucode.img
|
||||
initrd /initramfs-linux-ck-skylake.img
|
||||
options cryptdevice=UUID=65127d08-139a-4e52-8a7b-c8c0911f460c:lvm root=UUID=fb5fc334-d17a-4b2d-8c6f-8d9727ca58f6 resume=UUID=f61d451c-3feb-4bc1-b0c0-b5eab3490522 mitigations=off quiet rw
|
||||
5
loader/entries/linux-zen-fallback.conf
Executable file
5
loader/entries/linux-zen-fallback.conf
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
title Arch Linux - Encrypted
|
||||
linux /vmlinuz-linux-zen
|
||||
initrd /intel-ucode.img
|
||||
initrd /initramfs-linux-zen-fallback.img
|
||||
options cryptdevice=PARTUUID=379cfbc1-1611-4d61-ba80-dafac35f1c1a:lvm root=UUID=fb5fc334-d17a-4b2d-8c6f-8d9727ca58f6 quiet rw
|
||||
5
loader/entries/linux-zen.conf
Executable file
5
loader/entries/linux-zen.conf
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
title Arch Linux [Zen Kernel] - Encrypted
|
||||
linux /vmlinuz-linux-zen
|
||||
initrd /intel-ucode.img
|
||||
initrd /initramfs-linux-zen.img
|
||||
options cryptdevice=UUID=65127d08-139a-4e52-8a7b-c8c0911f460c:lvm root=UUID=fb5fc334-d17a-4b2d-8c6f-8d9727ca58f6 resume=UUID=f61d451c-3feb-4bc1-b0c0-b5eab3490522 mitigations=off quiet rw
|
||||
4
loader/loader.conf
Executable file
4
loader/loader.conf
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
default linux-ck
|
||||
timeout 0
|
||||
console-mode max
|
||||
editor no
|
||||
BIN
loader/random-seed
Executable file
BIN
loader/random-seed
Executable file
Binary file not shown.
|
|
@ -1,13 +1,9 @@
|
|||
#!/usr/bin/env sh
|
||||
if [ "$1" == "start" ] && [ -z "$2" ]; then
|
||||
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo
|
||||
for fgovernor in /sys/devices/system/cpu/cpufreq/policy*/scaling_governor; do echo performance > "${fgovernor}"; done
|
||||
exit
|
||||
elif [ "$1" == "start" ] && [ "$2" == "turbo" ]; then
|
||||
if [ "$1" == "start" ]; then
|
||||
echo 0 > /sys/devices/system/cpu/intel_pstate/no_turbo
|
||||
for fgovernor in /sys/devices/system/cpu/cpufreq/policy*/scaling_governor; do echo performance > "${fgovernor}"; done
|
||||
tee /sys/devices/system/cpu/cpufreq/policy*/scaling_governor <<< performance
|
||||
exit
|
||||
elif [ "$1" == "stop" ]; then
|
||||
for fgovernor in /sys/devices/system/cpu/cpufreq/policy*/scaling_governor; do echo powersave > "${fgovernor}"; done
|
||||
tee /sys/devices/system/cpu/cpufreq/policy*/scaling_governor <<< powersave
|
||||
exit
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -83,13 +83,14 @@ alias hibernate='systemctl hibernate'
|
|||
alias shutdown='systemctl poweroff'
|
||||
alias reboot='systemctl reboot'
|
||||
|
||||
# Alias for going to a temporal dir
|
||||
alias cdtemp='cd $(mktemp -d)'
|
||||
|
||||
# Alias to show ip addresses in short and color
|
||||
alias ipa='ip -c -br a'
|
||||
|
||||
# Avoid pip installing packages as root/sudo, execute the following line in your terminal or just delete the # at the begin
|
||||
#install -Dm644 /dev/stdin ~/.config/pip/pip.conf <<< $'[install]\nuser = yes\n'
|
||||
|
||||
# Alias for temporal dir/files
|
||||
alias dtemp='cd $(mktemp -d)'
|
||||
alias ftemp='$EDITOR $(mktemp).txt'
|
||||
|
||||
### END OWN ALIAS ###
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue