Skip to content

Commit

Permalink
Create INIT_lowLatencyKernal.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
0xastro authored Mar 2, 2020
1 parent 0c10e1c commit de060e3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions scripts/INIT_lowLatencyKernal.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash

#Dummy dependency test
run_install()
{
## Prompt the user
read -p "Do you want to check for missing Packages before setting the LT-Kernal? [Y/n]: " answer
answer=${answer:Y}
[[ $answer =~ [Yy] ]] && apt install ${boostlibnames[@]}
}

boostlibnames=("dpkg-dev")
## Run the run_install function if sany of the libraries are missing
dpkg -s "${boostlibnames[@]}" >/dev/null 2>&1 || run_install


printf "[INST] Low Latency Kernal installation ...\n"
sudo apt install linux-lowlatency

printf "[GIT] ubuntustudio-default-settings 18.04 LTS ...\n"
#cd /usr/src/ || exit;
sudo wget -q http://za.archive.ubuntu.com/ubuntu/pool/universe/u/ubuntustudio-default-settings/ubuntustudio-default-settings_0.64_all.deb

printf "[EXTR] Extract files in ubuntustudio-default-settings_0.64_all.deb ...\n"
dpkg -x ubuntustudio-default-settings_0.64_all.deb ubuntustudio-default-settings_0.64_all

printf "[MOVE] Move 09_lowlatency grub configuration to grub.d to assure its presistant across reboot ...\n"
sudo cp ubuntustudio-default-settings_0.64_all/etc/grub.d/09_lowlatency /etc/grub.d/

printf "[UPDA] Update System Grub configuration ....\n"
sudo update-grub

0 comments on commit de060e3

Please sign in to comment.