From 952dd6215a2a83d65937cf9e33534c42809091ed Mon Sep 17 00:00:00 2001 From: itdoginfo Date: Sun, 13 Oct 2024 13:01:36 +0300 Subject: [PATCH] dnsmasq-full install --- install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install.sh b/install.sh index f8091a7..4e9360b 100755 --- a/install.sh +++ b/install.sh @@ -14,6 +14,16 @@ done echo "opkg update" opkg update +if opkg list-installed | grep -q dnsmasq-full; then + echo "dnsmasq-full already installed" +else + echo "Installed dnsmasq-full" + cd /tmp/ && opkg download dnsmasq-full + opkg remove dnsmasq && opkg install dnsmasq-full --cache /tmp/ + + [ -f /etc/config/dhcp-opkg ] && cp /etc/config/dhcp /etc/config/dhcp-old && mv /etc/config/dhcp-opkg /etc/config/dhcp +fi + echo "Installed..." opkg install $DOWNLOAD_DIR/podkop*.ipk opkg install $DOWNLOAD_DIR/luci-app-podkop*.ipk