Skip to content

Commit

Permalink
Create install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sammwyy authored Jul 8, 2021
1 parent f5a30e8 commit aa01452
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -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."

0 comments on commit aa01452

Please sign in to comment.