Skip to content

Commit

Permalink
v6.30
Browse files Browse the repository at this point in the history
+ DietPi-Globals | Do not auto-generate a missing .hw_model. This is done at boot and on every update, hence it is always present. If it is really missing, it is better to have related error prompts, so the reason for it's absence can be investigated. This re-enables DietPi-PREP to pass custom G_DISTRO* values to have a correct sources.list created even on distro upgrade: #1285 (comment)
  • Loading branch information
MichaIng committed May 7, 2020
1 parent e5d2dd6 commit 5e98abc
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions dietpi/func/dietpi-globals
Expand Up @@ -80,17 +80,7 @@ G_GITOWNER='$G_GITOWNER'" > /boot/dietpi/.version
#[[ $G_DIETPI_SERVICES_DISABLE == [01] ]] || G_DIETPI_SERVICES_DISABLE=0

# Hardware details
# - Failsafe, recreate info file, if missing
if [[ -f '/boot/dietpi/.hw_model' ]]; then

. /boot/dietpi/.hw_model

elif [[ -f '/boot/dietpi/func/dietpi-obtain_hw_model' ]]; then

/boot/dietpi/func/dietpi-obtain_hw_model
. /boot/dietpi/.hw_model

fi
[[ -f '/boot/dietpi/.hw_model' ]] && . /boot/dietpi/.hw_model

# Init functions for originating script
# - Stuff we can't init in main globals/funcs due to /etc/bashrc.d/ load into login session.
Expand Down

0 comments on commit 5e98abc

Please sign in to comment.