This is a shell script intended for use with Termux which installs and runs an IPFS daemon for use with other applications. It watches connection information and restarts the IPFS daemon in offline mode when using mobile data and in online mode when using wifi.
Requires the Termux API app.
From the Termux command line:
curl https://raw.githubusercontent.com/facted-net/termux-ipfs-daemon/master/termux-ipfs -o ~/termux-ipfs; chmod ogu+x termux-ipfs
From the Termux command line:
./termux-ipfs