check for root before running
This commit is contained in:
parent
8f04ad3d5a
commit
cb2a0171d1
1 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
if [ 'whoami' != root ]
|
||||
then
|
||||
echo "must be run as root"
|
||||
exit
|
||||
fi
|
||||
sudo touch /etc/udev/rules.d/60-schedulers.rules
|
||||
sudo cat > /etc/udev/rules.d/60-schedulers.rules << EOF
|
||||
#set cfq scheduler for rotating disks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue