maintenance
This commit is contained in:
parent
f4e5562b96
commit
29ed94da16
11 changed files with 11 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
if [ $(id -u) -ne 0 ]
|
||||
then echo "Please run as root"
|
||||
exit 1
|
||||
then echo "Please run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$1" ]
|
||||
|
@ -9,6 +9,6 @@ then
|
|||
echo "Please provide a number to set swappiness value!" && exit 2
|
||||
else
|
||||
sudo echo "vm.swappiness="$1 >> /etc/sysctl.conf
|
||||
sudo sysctl -p
|
||||
sudo sysctl -p
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue