Skip to content

Commit

Permalink
update 2025-03-05 20:40:43
Browse files Browse the repository at this point in the history
  • Loading branch information
kenzok8 committed Mar 5, 2025
1 parent 86d3b99 commit 767c93f
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 239 deletions.
18 changes: 14 additions & 4 deletions UA2F/openwrt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,35 @@ ifeq ($(CONFIG_UA2F_DEBUG_BUILD),y)
endif

define Package/ua2f/description
Change User-agent to Fwords to prevent being checked by Dr.Com.
Change User-agent to Fwords to prevent being detected.
endef

define Package/ua2f/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ua2f $(1)/usr/bin/

$(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d $(1)/etc/uci-defaults
$(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d
$(INSTALL_BIN) ./files/ua2f.config $(1)/etc/config/ua2f
$(INSTALL_BIN) ./files/ua2f.init $(1)/etc/init.d/ua2f
$(INSTALL_BIN) ./files/ua2f.uci $(1)/etc/uci-defaults/80-ua2f
endef

define Package/ua2f/postinst
#!/bin/sh

# check if we are on real system
[ -n "$${IPKG_INSTROOT}" ] || {
(. /etc/uci-defaults/80-ua2f) && rm -f /etc/uci-defaults/80-ua2f
uci -q delete firewall.ua2f

if [ -z "$(command -v nft)" ]; then
uci -q batch <<-EOF >/dev/null
set firewall.ua2f=include
set firewall.ua2f.type=script
set firewall.ua2f.path=/var/etc/ua2f.include
set firewall.ua2f.reload=1
EOF
fi

uci -q commit firewall
exit 0
}
endef
Expand Down
199 changes: 0 additions & 199 deletions UA2F/scripts/test-openwrt-docker.sh

This file was deleted.

7 changes: 7 additions & 0 deletions UA2F/src/assert.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#pragma once

#ifdef NDEBUG
#undef NDEBUG
#endif

#include <assert.h>
Loading

0 comments on commit 767c93f

Please sign in to comment.