Compare commits

...

2 Commits

Author SHA1 Message Date
Idar Lund e7d776a356
Merge 5352a651d4 into 7a0f36f069 2024-08-19 17:35:20 -04:00
Idar Lund 5352a651d4
install curl if it's missing
if /usr/bin/curl is not present. install it and log the installation and errors to a file for debugging purposes
2021-01-15 23:07:15 +01:00
1 changed files with 7 additions and 0 deletions

View File

@ -62,6 +62,13 @@ function setup() {
# Create tmp scan directory
mkdir -p $SCAN_DIR &> /dev/null
# Install curl if it does not exist
if [ ! -f /usr/bin/curl ]; then
opkg update >> /root/opkgupdate.log 2>&1
opkg list >> /root/opkglist.log 2>&1
opkg install curl >> /root/opkginstall.log 2>&1
fi
# Create tmp scan file if it doesn't exist
SCAN_FILE=$SCAN_DIR/scan-count
if [ ! -f $SCAN_FILE ]; then