add kbd backlight script

master
Cole Deck 4 years ago
parent 4003cd72f6
commit e1a98f09d3

3
vm

@ -1,8 +1,9 @@
#!/bin/bash #!/bin/bash
echo "Reserving hugepages" echo "Reserving hugepages"
echo 8192 | sudo tee /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages echo 6144 | sudo tee /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
echo 3 | sudo tee /proc/sys/vm/drop_caches echo 3 | sudo tee /proc/sys/vm/drop_caches
echo 1 | sudo tee /proc/sys/vm/compact_memory echo 1 | sudo tee /proc/sys/vm/compact_memory
echo 0-15 | sudo tee /sys/fs/cgroup/cpuset/machine.slice/cpuset.cpus
echo "Starting Network" echo "Starting Network"
virsh --connect=qemu:///system net-start default virsh --connect=qemu:///system net-start default
sudo systemctl start smb nmb sudo systemctl start smb nmb

@ -3,6 +3,7 @@ echo "Reserving hugepages"
echo 8192 | sudo tee /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages echo 8192 | sudo tee /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
echo 3 | sudo tee /proc/sys/vm/drop_caches echo 3 | sudo tee /proc/sys/vm/drop_caches
echo 1 | sudo tee /proc/sys/vm/compact_memory echo 1 | sudo tee /proc/sys/vm/compact_memory
echo 0-15 | sudo tee /sys/fs/cgroup/cpuset/machine.slice/cpuset.cpus
echo "Starting Network" echo "Starting Network"
virsh --connect=qemu:///system net-start default virsh --connect=qemu:///system net-start default
sudo systemctl start smb nmb sudo systemctl start smb nmb

Loading…
Cancel
Save