From aa01452951187e709d4bba4996c1af724ad9f9eb Mon Sep 17 00:00:00 2001 From: Sammwy <44925968+sammwyy@users.noreply.github.com> Date: Thu, 8 Jul 2021 01:35:28 -0300 Subject: [PATCH] Create install.sh --- install.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..05004e5 --- /dev/null +++ b/install.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Check if is root +echo "Kernel Tweeks by Nfense." +if [ "$EUID" -ne 0 ] + then echo "Please run this as root" + exit +fi + +# Copy kernel settings to /etc +cp ./sysctl.conf /etc + +# Reload kernel from file +sysctl -p +echo "Settings updated."