Skip to content

Instantly share code, notes, and snippets.

@EthraZa EthraZa/sshd.sh
Created Jul 8, 2019

Embed
What would you like to do?
Termux simple init script - Goes in $PREFIX/etc/profile.d/
ENABLED=1
PROC="sshd"
CMD=$PROC
if [ $ENABLED = 1 ] ; then
if pgrep -f $PROC >/dev/null ; then
echo "[$PROC is running]"
else
echo "[Starting $PROC...]" && $CMD && echo "[OK]"
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.