Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you add automatic installation script? #498

Open
Makki68 opened this issue May 12, 2024 · 1 comment
Open

Can you add automatic installation script? #498

Makki68 opened this issue May 12, 2024 · 1 comment

Comments

@Makki68
Copy link

Makki68 commented May 12, 2024

Hi

can you add automatic installation script? For now it looks too complicated to install your theme.

For example:

#!/bin/sh

if opkg list-installed | grep -q "openwrt"; then
    echo "This script is intended for OpenWRT systems only. Exiting and self-deleting."
    rm -- "$0"
    exit 1
fi

read -p "Do you want to start the installation? (y/n): " start_install
if [ "$start_install"!= "y" ]; then
    echo "Invalid option. Please try again."
    exit 1
else
    echo "Starting installation..."
fi

opkg update
opkg install luci-compat luci-lib-ipkg

wget --no-check-certificate https://github.com/jerrykuku/luci-theme-argon/releases/download/v2.3.1/luci-theme-argon_2.3.1_all.ipk
opkg install luci-theme-argon*.ipk

echo "It is recommended to install the additional configuration package for the theme as it will not affect performance."

read -p "Do you want to install the additional configuration package for the theme? (y/n): " install_config
if [ "$install_config" = "y" ]; then
    echo "Starting installation of additional configuration package..."
    wget --no-check-certificate https://github.com/jerrykuku/luci-app-argon-config/releases/download/v0.9/luci-app-argon-config_0.9_all.ipk
    opkg install luci-app-argon-config*.ipk
fi

echo "Installation completed. Script will self-remove to save available memory."
rm -- "$0"
@jerrykuku
Copy link
Owner

This is a really great suggestion that I will add to the Readme!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants