Skip to content

Commit

Permalink
Pi-hole for Android 1.6
Browse files Browse the repository at this point in the history
Pi-hole for Android 1.6

- Sync with upstream
- Build pi-hole-FTL instead of downloding binary
- Shutdown and PowerOff options in Web Admin are now working
- Added systemctl-shim to enable systemctl functionality

To update Pi-hole when upstream publishes new releases, connect to the Pi-hole instance via SSH or RDP and run the following command:

p4a-install

The equivalent command pihole -up will quit, reporting an unsupported distro.
  • Loading branch information
DesktopECHO committed Sep 8, 2022
1 parent b22b064 commit e2fbed3
Showing 13 changed files with 629 additions and 48 deletions.
5 changes: 5 additions & 0 deletions .motd
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Pi-hole for Android 1.6 [20220908]

Pi-hole Stats -> padd
Install or Update -> p4a-install

9 changes: 9 additions & 0 deletions .poweroff
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
service pihole-FTL stop
service unbound stop
service lighttpd stop
service xrdp stop
service crond stop
service syslog-ng stop
bash -c "unchroot am start -a com.android.internal.intent.action.REQUEST_SHUTDOWN" > /dev/null 2>&1
bash -c "unchroot am start -n android/com.android.internal.app.ShutdownActivity" > /dev/null 2>&1
8 changes: 8 additions & 0 deletions .reboot
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
service pihole-FTL stop
service unbound stop
service lighttpd stop
service xrdp stop
service crond stop
service syslog-ng stop
bash -c "unchroot am start -a android.intent.action.REBOOT" > /dev/null 2>&1
Loading

0 comments on commit e2fbed3

Please sign in to comment.