mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
29 lines
450 B
Bash
Executable File
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
|