Linux server.flyproject.com.br 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Apache
: 207.244.227.86 | : 216.73.217.1
10 Domain
7.1.33
hubnog
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
libexec /
anaconda /
[ HOME SHELL ]
Name
Size
Permission
Action
anaconda-pre-log-gen
590
B
-rwxr-xr-x
anaconda-yum
16.51
KB
-rwxr-xr-x
auditd
6.98
KB
-rwxr-xr-x
dd_extract
15.53
KB
-rwxr-xr-x
dd_list
15.55
KB
-rwxr-xr-x
log-capture
1.24
KB
-rwxr-xr-x
run-anaconda
116
B
-rwxr-xr-x
upd-updates
2.55
KB
-rwxr-xr-x
zram-stats
1.21
KB
-rwxr-xr-x
zramswapoff
1.44
KB
-rwxr-xr-x
zramswapon
2.24
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : zramswapon
#!/bin/bash # # Copyright (C) 2014 Red Hat, Inc. # # Heavily inspired by zramswapon script found in the Simone Sclavi's repository # at http://software.opensuse.org/package/systemd-zram-service # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY expressed or implied, including the implied warranties of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General # Public License for more details. You should have received a copy of the # GNU General Public License along with this program; if not, write to the # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. Any Red Hat trademarks that are incorporated in the # source code or documentation are not subject to the GNU General Public # License and may only be used or replicated with the express permission of # Red Hat, Inc. # # Red Hat Author(s): Vratislav Podzimek <vpodzime@redhat.com> # set -x MAX_RAM_ON=2097152 # get the amount of memory in the machine mem_total_kb=$(grep MemTotal /proc/meminfo | grep -E --only-matching '[[:digit:]]+') mem_total=$((mem_total_kb * 1024)) grep -E 'inst\.zram=(on|1)' /proc/cmdline > /dev/null force=$? if [ \( $mem_total_kb -gt $MAX_RAM_ON \) -a \( $force != "0" \) ]; then # more than 1 GB of RAM and not forced, do nothing exit 0 fi # get the number of CPUs num_cpus=$(getconf _NPROCESSORS_ONLN) # set decremented number of CPUs decr_num_cpus=$((num_cpus - 1)) # load dependency modules modprobe zram num_devices=$num_cpus # initialize the devices for i in $(seq 0 $decr_num_cpus); do echo $((mem_total / num_cpus)) > /sys/block/zram$i/disksize done # Creating swap filesystems for i in $(seq 0 $decr_num_cpus); do mkswap /dev/zram$i done # Switch the swaps on for i in $(seq 0 $decr_num_cpus); do swapon -p 100 /dev/zram$i done if [ $mem_total_kb -le "1048576" ]; then # less than 1 GB or RAM -> less than 512 MB /tmp (tmpfs defaults to # 0.5*RAM), bump up the /tmp's size, yum may need it mount -o remount,size=512M /tmp fi
Close