2017-11-16 16:42:22 +11:00

29 lines
450 B
Bash
Executable File

#!/bin/sh
# Author: sud0nick
# Date: Dec 2016
if [ $# -eq 0 ]; then
exit;
fi
if [[ "$1" == "-check" ]]; then
testCurl=$(opkg list-installed | grep -w 'curl')
if [ -z "$testCurl" ]; then
echo "Not Installed";
else
echo "Installed";
fi
fi
if [[ "$1" == "-install" ]]; then
opkg update > /dev/null;
opkg install curl > /dev/null;
echo "Complete"
fi
if [[ "$1" == "-remove" ]]; then
opkg remove curl > /dev/null
echo "Complete"
fi