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
+ DietPi-Survey | Add an info whether an SD card or eMMC module is used as root filesystem. This is useful for us to estimate how much filesystem write reduction needs to be weighted. Actually it would be better to detect SD card exclusively, since eMMC modules are designed to be used as OS drives and are hence expected to survive longer in average, but I don't know any simple method to do so currently.
+ DietPi-Survey/BugReport | Add a check whether our SSH host key is present on the system, else offer to have it re-added to allow proceeding with the survey/bug report upload/purge.
'BENCH_VERSION='[12]) BENCH_VERSION=${line#*'='};; # 1 until v6.23, 2 afterwards
@@ -684,6 +687,7 @@ shopt -s extglob
684
687
((aAUTO_SETUP_AUTOMATED["$automated"]++))
685
688
((aNETWORK_INTERFACE["$iface"]++))
686
689
[[ $raspbian ]] &&((aRASPBIAN["$raspbian"]++))
690
+
[[ $mmc ]] &&((aMMC["$mmc"]++))
687
691
foriin"${asoftware[@]}"
688
692
do
689
693
((aSOFTWARE["$i"]++))
@@ -1114,6 +1118,11 @@ shopt -s extglob
1114
1118
<tr><td>Debian is used by</td><td align="right">${aRASPBIAN[0]} of $((${aRASPBIAN[0]}+${aRASPBIAN[1]})) RPi systems</td><td align=\"right\">$((${aRASPBIAN[0]}*100/ ( ${aRASPBIAN[0]}+${aRASPBIAN[1]} ) ))%</td></tr>
1115
1119
</table>
1116
1120
1121
+
<h2 id="mmc"><a href="#mmc">SD card/eMMC used ¶</a></h2>
1122
+
<table>
1123
+
<tr><td>SD card or eMMC used as rootfs by</td><td align="right">${aMMC[1]} of $((${aMMC[0]}+${aMMC[1]})) systems</td><td align=\"right\">$((${aMMC[1]}*100/ ( ${aMMC[0]}+${aMMC[1]} ) ))%</td></tr>
Copy file name to clipboardexpand all lines: dietpi/dietpi-bugreport
+15
Original file line number
Diff line number
Diff line change
@@ -160,6 +160,21 @@ Available commands:
160
160
161
161
Upload_Bug_Report(){
162
162
163
+
# Check if our ssh.dietpi.com SSH host key is present
164
+
if [[ !-f'/root/.ssh/known_hosts' ]] ||! grep -q '^ssh.dietpi.com[[:blank:]]' /root/.ssh/known_hosts
165
+
then
166
+
# If missing, offer to re-add it
167
+
if G_WHIP_YESNO '[WARNING] ssh.dietpi.com SSH host key is missing\nOur ssh.dietpi.com SSH host key, required to send or purge survey data and bug reports, is missing in /root/.ssh/known_hosts. Shall we re-create it to proceed with sending/purging the bug report?'
# Check if our ssh.dietpi.com SSH host key is present
102
+
if [[ !-f'/root/.ssh/known_hosts' ]] ||! grep -q '^ssh.dietpi.com[[:blank:]]' /root/.ssh/known_hosts
103
+
then
104
+
# If missing, offer to re-add it
105
+
if G_WHIP_YESNO '[WARNING] ssh.dietpi.com SSH host key is missing\nOur ssh.dietpi.com SSH host key, required to send or purge survey data and bug reports, is missing in /root/.ssh/known_hosts. Shall we re-create it to proceed with sending/purging the bug report?'
0 commit comments