diff --git a/install-all.sh b/install-all.sh index bb7ce91..2b474e5 100755 --- a/install-all.sh +++ b/install-all.sh @@ -1,6 +1,6 @@ #!/bin/bash -# this script will install proxmark3-rdv4, and all the things. +# this script will install proxmark3-rdv4 on a raspiberry pi, and all the things. sudo apt-get update && sudo apt-get -y install --no-install-recommends git ca-certificates build-essential pkg-config \ libreadline-dev gcc-arm-none-eabi libnewlib-dev python3-flask python3-flask-sqlalchemy hostapd dnsmasq python3-pip python3-dateutil python3-dateparser libev-dev gunicorn3 && \ diff --git a/rpi-setup.sh b/rpi-setup.sh index 73b476a..2256b22 100755 --- a/rpi-setup.sh +++ b/rpi-setup.sh @@ -1,18 +1,24 @@ #!/bin/bash sudo systemctl stop dnsmasq && \ sudo systemctl stop hostapd && \ -cat </tmp/dhcpcd.conf +sudo cp /etc/dhcpcd.conf /tmp/dhcpcd.conf +cat <>/tmp/dhcpcd.conf interface wlan0 static ip_address=192.168.4.1/24 nohook wpa_supplicant EOF -sudo mv /tmp/dhcpcd.conf /etc/dhcpcd.conf +sudo cp /tmp/dhcpcd.conf /etc/dhcpcd.conf sudo service dhcpcd restart sudo mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig cat </tmp/dnsmasq.conf interface=wlan0 # Use the require wireless interface - usually wlan0 dhcp-range=192.168.4.2,192.168.4.20,255.255.255.0,24h + +interface=br0 +expand-hosts +domain=proxmark3-web.com +dhcp-range=192.168.20.100,192.168.20.150,12h EOF sudo mv /tmp/dnsmasq.conf /etc/dnsmasq.conf sudo systemctl reload dnsmasq