
These scripts start one another, as a workaround for systemd , corestarter and Termux boot go hand in hand to make script run all the time in background scrips works by spawning one another sequentially corestarter -> initProcess -> goLive ->initRVP
20 lines
645 B
Bash
20 lines
645 B
Bash
|
|
|
|
if termux-wifi-connectioninfo | grep -q '"network_id": -1,'; then
|
|
echo "[-] NAS Server is OFFLINE...waiting for Internet Source"
|
|
pkill sshd
|
|
|
|
else
|
|
echo "[+] NAS Server is Online and Active :)"
|
|
#start SSH server Daemon
|
|
sshd
|
|
sleep 5
|
|
echo "[+] ssh server initiated, ssh server is up at Local Network"
|
|
bash /data/data/com.termux/files/home/.custmScrpt/initRVP.sh
|
|
bash /data/data/com.termux/files/home/.custmScrpt/initMySpace.sh
|
|
|
|
fi
|
|
|
|
|
|
|