Commit graph

91 commits

Author SHA1 Message Date
Jacob Salmela
c80b06769f download master gravity 2015-11-10 17:28:53 -06:00
Jacob Salmela
0e2f0db652 reboot logic 2015-11-10 17:28:05 -06:00
Jacob Salmela
db9fd78011 reboot only if new IP was set 2015-11-10 08:12:24 -06:00
Jacob Salmela
e222a1d5e9 choose an interface
also fixing ipv6 logic
2015-11-09 18:33:32 -06:00
Jacob Salmela
f8a6703eab moving to functions
Also download the whitelist script.  Ask for donations for IPv6 support.
2015-11-08 17:21:02 -06:00
Jacob Salmela
903aedc9c9 reboot works better 2015-11-07 13:09:23 -06:00
Jacob Salmela
df68b2c033 Closing dialog
Also starting the Pi-hole and restarting networking.
2015-11-07 12:35:08 -06:00
Jacob Salmela
ac43bf7877 simple function to run install commands
The arrays were cool, but I think this just works easier.
2015-11-07 12:07:50 -06:00
Jacob Salmela
ecb4ea581e trying text output
I commented out the whiptail dialog at the end in place of text so you
can see what is going on.  I also install the crontab.
2015-11-07 09:43:04 -06:00
Jacob Salmela
7cf8b46bd1 testing with no reboot 2015-11-06 17:45:00 -06:00
Jacob Salmela
48bf5f98f2 does gravity use static IP?
The changes to the gravity script check for a temp file containing the
static address set during the install.  I need to verify it works so I
have to change the URL.  I will change it back before merging with
master.
2015-11-01 13:00:55 -06:00
Jacob Salmela
93d5bcb12b overwrite html folder
If the files already exist, the installer stalls out because it asks if
you want to replace the existing files.  the -o option forces an
overwrite.
2015-11-01 12:54:19 -06:00
Jacob Salmela
f1c2bef0d1 dumb mistake
fixed the variable name
2015-10-31 09:21:19 -05:00
Jacob Salmela
06f620ed86 fix permission denied for log file
Just use a temporary file and then move it over once the install is
complete.
2015-10-31 09:19:57 -05:00
Jacob Salmela
e2b131a13d save output to log file instead
Since the progress bar hides the output now.  Instead of destroying it,
send it to a log file instead so users who want to see it still can.
2015-10-31 09:15:57 -05:00
Jacob Salmela
48973b195f set static ip and suppress more output
Created a function to set a static IP address.

I also sent STDOUT and STDERR to /dev/null so it doesn't mangle the
progress bar.  When the device reboots, it still gets mangled a bit
(via ssh).
2015-10-31 09:11:29 -05:00
Jacob Salmela
4dab16faa6 progress dialog working
The ellipses cause errors, so they were removed.

I was on the right track with the associate array, but it would
previously execute the commands out of order.  Following directions
from the URL in the comments, I made another array that helps keep the
array in the order.
2015-10-29 20:10:30 -05:00
Jacob Salmela
08d6b8a67a whiptail revamp of install script
This is a large update that helps users install the Pi-hole a bit
easier by using some dialog windows and also letting the user set a
static IP (I still need to figure out how to actually set the address
in the system, but everything else having to do with the install script
works).
2015-10-28 17:29:34 -05:00
Jacob Salmela
7a0b92d2c1 missed a few file paths 2015-10-27 17:03:48 -05:00
Jacob Salmela
cfc4697236 Download and install the Web interface
dnsmasq also needs to be able to read the log file to properly display
the statistics
2015-10-27 16:21:20 -05:00
Jacob Salmela
bc3ece778d /var/www/html instead of /var/www
lighttpd in Jessie uses /var/www/html for the root folder, so in order
to only edit one lightpd.conf file, the installer will create the
correct directory even if not being run on Jessie.
2015-10-27 16:19:01 -05:00
Jacob Salmela
6d0c67af9a Install and enable PHP
Needed to view the admin web interface
2015-10-27 16:16:22 -05:00
Emmanuel CHARETTE
ced96905e9 Update basic-install.sh
change `shutdown -r now` to reboot for ssh users
2015-10-24 21:55:31 +02:00
mospaeda
06e89614e9 Dnsutils package missing for dig tool 2015-10-05 23:58:15 +02:00
mospaeda
7b49677d24 add install for bc and toilet tools
these tools are needed later by chronometer.sh
2015-09-22 22:38:25 +02:00
mospaeda
56d4b7b0f7 Update basic-install.sh 2015-09-22 22:13:16 +02:00
mospaeda
96bc557e21 Update basic-install.sh 2015-09-22 22:11:30 +02:00
mospaeda
11fcfc4bf5 Update basic-install.sh 2015-09-22 22:10:33 +02:00
mospaeda
6fc798ebe4 Update basic-install.sh 2015-09-18 00:40:21 +02:00
mospaeda
2b4500363b Update basic-install.sh 2015-09-18 00:31:17 +02:00
mospaeda
2d91a7a3c4 Update basic-install.sh 2015-09-18 00:22:21 +02:00
mospaeda
d15a085dd0 Update basic-install.sh 2015-09-18 00:20:50 +02:00
mospaeda
8718321727 Update basic-install.sh 2015-09-18 00:06:04 +02:00
Mathias
46bda342a9 Fix URL of chronometer.sh
Github URLs seems to be case-sensitive. Now the chronometer.sh souldn't contain "Not Found" anymore. ;)
2015-08-10 22:50:06 +02:00
jacobsalmela
6953c02402 detect original pihole and backup
Detects if the Pi had an original Pi-hole by looking for adList.conf.
If it exists, it backs up all the files to /etc/pihole/original.  Then,
the script continues as normal and creates the new files.  This helps
ensure that /etc/hosts and /etc/dnsmasq.d/adList.conf are not being
used simultaneously.
2015-06-21 07:53:29 -05:00
jacobsalmela
a2350ba880 misspelled "install" 2015-06-16 17:23:48 -05:00
jacobsalmela
56c776af22 hosts format script 2015-05-19 13:31:37 -05:00
jacobsalmela
fe4e579005 working copy (I think)
for use with the upcoming Raspberry Pi, ad-blocking, wireless router.
2015-02-08 17:17:45 -06:00
jacobsalmela
55ebc0e492 fixing dns 2014-12-20 13:10:58 -06:00
jacobsalmela
ea5616d3b3 escaping ascii art 2014-12-20 12:44:36 -06:00
jacobsalmela
4ba3ba2ef5 initial commit - unstable 2014-12-20 12:43:10 -06:00