Skip to content

Commit

Permalink
Update debug.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
flatsiedatsie committed Aug 29, 2022
1 parent f96d4ad commit 23d6054
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions home/pi/candle/debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,17 @@ if ! cat /etc/hosts | grep -q "$(cat /etc/hostname)"; then
echo "hostname was not in /etc/hosts"
fi

if lsblk | grep -q 'mmcblk0p4'; then
if ! cat /etc/fstab | grep -q 'mmcblk0p4'; then
echo "/etc/fstab does not reference fourth partition"
fi
else
if ! cat /etc/fstab | grep -q 'mmcblk0p3'; then
echo "/etc/fstab does not reference third partition"
fi
fi


echo
echo
echo "--------------------------------------------- warnings"
Expand Down

0 comments on commit 23d6054

Please sign in to comment.