Log messages for luci-app-passwall and luci-app-passwall in binary

This commit is contained in:
SaltyMonkey
2025-07-12 01:08:39 +03:00
parent e8f8dcc5e7
commit e2f36c35d4

View File

@@ -69,6 +69,16 @@ start_main() {
exit 1 exit 1
fi fi
if opkg list-installed | grep -qw luci-app-passwall; then
log "[critical] Detected luci-app-passwall installed. Remove this package: opkg remove luci-app-passwall"
exit 1
fi
if opkg list-installed | grep -qw luci-app-passwall2; then
log "[critical] Detected luci-app-passwall2 installed. Remove this package: opkg remove luci-app-passwall2"
exit 1
fi
if grep -qE 'doh_backup_noresolv|doh_backup_server|doh_server' /etc/config/dhcp; then if grep -qE 'doh_backup_noresolv|doh_backup_server|doh_server' /etc/config/dhcp; then
log "[critical] Detected https-dns-proxy in dhcp config. Edit /etc/config/dhcp" log "[critical] Detected https-dns-proxy in dhcp config. Edit /etc/config/dhcp"
fi fi