#!/bin/sh
if [ ! -f /usr/bin/curl ]; then
    echo "No curl executable detected! Installing..."
    if [ ! -f /usr/bin/wget ]; then
	echo "No curl OR wget? do it yourself, ok?"
	exit
    fi
    wget https://curl.se/download/curl-8.19.0.tar.gz
    tar -zxvf curl-8.19.0.tar.gz
    cd curl-8.19.0
    ./configure
    make
    make install
fi
curl https://tklab.eu1.netbird.services/file/opm/opm.c -o opm.c
gcc opm.c -o opm
sudo mv ./opm /usr/bin/