luci-app-mosdns: remove bash package dependencies

This commit is contained in:
sbwml 2022-07-25 14:11:51 +08:00
parent dc97f0b5d1
commit bceeb02ad8
6 changed files with 7 additions and 8 deletions

View File

@ -6,7 +6,7 @@ PKG_RELEASE:=1
LUCI_TITLE:=LuCI Support for mosdns
LUCI_PKGARCH:=all
LUCI_DEPENDS:=+mosdns +jsonfilter +bash +luci-compat +curl +v2ray-geoip +v2ray-geosite
LUCI_DEPENDS:=+mosdns +jsonfilter +luci-compat +curl +v2ray-geoip +v2ray-geosite
define Package/$(PKG_NAME)/conffiles
/etc/config/mosdns

View File

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/sh
adblock=$(uci -q get mosdns.mosdns.adblock)
if [ "$adblock" -eq 1 ];then

View File

@ -1,5 +1,5 @@
#!/bin/bash -e
# shellcheck source=/etc/mosdns/library.sh
#!/bin/sh
source /usr/share/mosdns/library.sh
if [ "$(ifconfig | grep -c wan)" = 0 ]; then

View File

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/sh
bakdns() {
if [ "$1" == "0" ]; then

View File

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/sh
configfile=$(uci -q get mosdns.mosdns.configfile)
if [ "$configfile" = "/etc/mosdns/config.yaml" ]; then

View File

@ -1,5 +1,4 @@
#!/bin/bash -e
# shellcheck source=/etc/mosdns/library.sh
#!/bin/sh
set -o pipefail
source /usr/share/mosdns/library.sh