mirror of
https://gitlab.com/hacklab01/pivilion.git
synced 2026-08-06 16:08:22 +00:00
Add modern Raspberry Pi OS compatibility
This commit is contained in:
parent
4636a4f4f6
commit
3b7a16564b
35 changed files with 725 additions and 15678 deletions
|
|
@ -647,6 +647,4 @@
|
|||
# Include all files in a directory which end in .conf
|
||||
#conf-dir=/etc/dnsmasq.d/*.conf
|
||||
|
||||
interface=wlan0
|
||||
dhcp-range=10.1.0.50,10.1.0.200,12h
|
||||
address=/#/10.1.0.1
|
||||
# Pivilion settings are generated in /etc/dnsmasq.d/pivilion-runtime.conf.
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
5
etc/php/pivilion.ini
Normal file
5
etc/php/pivilion.ini
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
upload_max_filesize = 256M
|
||||
post_max_size = 272M
|
||||
max_file_uploads = 100
|
||||
max_execution_time = 300
|
||||
memory_limit = 512M
|
||||
12
etc/systemd/system/pivilion-dnsmasq.service
Normal file
12
etc/systemd/system/pivilion-dnsmasq.service
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=Pivilion captive-portal DHCP and DNS
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStartPre=/usr/sbin/dnsmasq --test --conf-file=/etc/dnsmasq.d/pivilion-runtime.conf
|
||||
ExecStart=/usr/sbin/dnsmasq --keep-in-foreground --conf-file=/etc/dnsmasq.d/pivilion-runtime.conf
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
13
etc/systemd/system/pivilion-mode.service
Normal file
13
etc/systemd/system/pivilion-mode.service
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Select Pivilion hotspot or onion networking mode
|
||||
After=network-pre.target NetworkManager.service dhcpcd.service
|
||||
Wants=network-pre.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/lib/pivilion/mode.sh
|
||||
RemainAfterExit=yes
|
||||
TimeoutStartSec=90
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
4
etc/tor/torrc.d/pivilion.conf
Normal file
4
etc/tor/torrc.d/pivilion.conf
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
SocksPort 0
|
||||
HiddenServiceDir /var/lib/tor/pivilion/
|
||||
HiddenServiceVersion 3
|
||||
HiddenServicePort 80 127.0.0.1:80
|
||||
Loading…
Add table
Add a link
Reference in a new issue