Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- exec > /dev/kmsg 2>&1
- export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
- ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h
- \ls /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor | while read file; do
- echo "performance" > $file
- done
- \ls /sys/bus/usb/devices/*/power/control | while read file; do
- echo "on" > $file
- done
- find /sys -name add_random -exec sh -c 'echo "0" > {}' \;
- find /sys/devices -name read_ahead_kb | grep -v virtual | while read file; do echo 512 > $file; done
- find /sys/devices -name nr_requests | grep "sd./queue/nr_requests" | while read file; do echo 512 > $file; done
- ethtool -s eno1 wol g
- rfkill block bluetooth
- . /home/arter97/arter97/init.d/vmtouch
- apt clean
- adb start-server
- echo "init.d: trimming"
- cat /etc/fstab | grep -v "#" | grep -v "tmpfs" | grep -v ",discard" | awk '{print $2}' | grep "/" | sort | while read mount; do
- fstrim -v $mount &
- done
- #sleep 60
- #killall vmtouch
- sync
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement