Skip to content

Commit

Permalink
v6.18
Browse files Browse the repository at this point in the history
+ PREP: Do not fail on HW_MODEL, due to RPi using auto detection: https://github.com/Fourdee/DietPi/issues/2181#issuecomment-433715556
  • Loading branch information
Daniel Knight committed Oct 28, 2018
1 parent 918ef53 commit 0c09953
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions rootfs/var/lib/dietpi/services/fs_partition_resize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,12 @@ fi
if [[ $TARGET_PARTITION == [0-9] ]]; then

# - Check for valid device ID
# Do not fail due to RPi has autodetection of hw_model
if ! HW_MODEL=$(</etc/.dietpi_hw_model_identifier); then

echo '[FAILED] Could not determine device ID from: /etc/.dietpi_hw_model_identifier'
exit 1

elif [[ $HW_MODEL =~ [^0-9] ]]; then

echo "[FAILED] Invalid hardware ID: $HW_MODEL"
exit 1
echo 'Assuming RPi'
HW_MODEL=0

fi

Expand Down

0 comments on commit 0c09953

Please sign in to comment.