You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [[ $existingFreeBytes-lt$requiredFreeBytes ]];then
126
+
whiptail --msgbox --backtitle "Insufficient Disk Space" --title "Insufficient Disk Space""\nYour system appears to be low on disk space. pi-hole recomends a minimum of $requiredFreeBytes Bytes.\nYou only have $existingFreeBytes Free.\n\nIf this is a new install you may need to expand your disk.\n\nTry running:\n 'sudo raspi-config'\nChoose the 'expand file system option'\n\nAfter rebooting, run this installation again.\n\ncurl -L install.pi-hole.net | bash\n"$r$c
127
+
exit 1
128
+
fi
129
+
}
130
+
131
+
118
132
chooseInterface() {
119
133
# Turn the available interfaces into an array so it can be used with a whiptail dialog
120
134
interfacesArray=()
@@ -148,6 +162,12 @@ chooseInterface() {
148
162
149
163
}
150
164
165
+
cleanupIPv6() {
166
+
# Removes IPv6 indicator file if we are not using IPv6
167
+
if [ -f"/etc/pihole/.useIPv6" ] && [ !$useIPv6 ];then
168
+
rm /etc/pihole/.useIPv6
169
+
fi
170
+
}
151
171
152
172
use4andor6() {
153
173
# Let use select IPv4 and/or IPv6
@@ -187,6 +207,7 @@ use4andor6() {
187
207
echo"::: Exiting"
188
208
exit 1
189
209
fi
210
+
cleanupIPv6
190
211
else
191
212
echo"::: Cancel selected. Exiting..."
192
213
exit 1
@@ -557,6 +578,9 @@ The install log is in /etc/pihole." $r $c
557
578
$SUDO mkdir -p /etc/pihole/
558
579
welcomeDialogs
559
580
581
+
# Verify there is enough disk space for the install
582
+
verifyFreeDiskSpace
583
+
560
584
# Just back up the original Pi-hole right away since it won't take long and it gets it out of the way
0 commit comments