diff --git a/patches/core-002-fix-unnecessary-sudo.patch b/patches/core-002-fix-unnecessary-sudo.patch deleted file mode 100644 index d569ef8..0000000 --- a/patches/core-002-fix-unnecessary-sudo.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/pihole b/pihole -index 7c84771..68b2f04 100755 ---- a/pihole -+++ b/pihole -@@ -578,6 +578,11 @@ if [[ -z ${USER} ]]; then - USER=$(whoami) - fi - -+# In Entware if there is no pihole user then don't use sudo -+if [ -f /opt/etc/opkg.conf ] && [ -z "$(id -u pihole 2> /dev/null)" ]; then -+ need_root=1 -+fi -+ - # Check if the current user is neither root nor pihole and if the command - # requires root. If so, exit with an error message. - if [[ $EUID -ne 0 && ${USER} != "pihole" && need_root -eq 1 ]];then