Skip to content

Commit

Permalink
Release 20.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
heuer committed Dec 26, 2020
2 parents 3871ce9 + bd5a2d5 commit 8fd70ce
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes

## 20.1.1 -- 2020-12-26
* Change hostname to "tx-pi" if the host uses the default hostname "raspberrypi"
* Remove obsolete packages automatically

## 20.1.0 -- 2020-07-21
* Removed support for Debian Jessie (v8)
* Added support for Debian Buster (v10)
Expand Down
11 changes: 10 additions & 1 deletion dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,22 @@ to create an installable SD card image from a working TX-Pi setup.
```
# read image from SD card reader
sudo cp /dev/sdb tx-pi-fullsize.img
# Download the pishrink script
wget https://raw.githubusercontent.com/harbaum/PiShrink/master/pishrink.sh
# Make the script executable
chmod +x pishrink.sh
# shrink image
sudo ./pishrink.sh -c tx-pi-fullsize.img tx-pi.img
```
Afterwards, you have to apply the [preparetxpidist.sh](https://github.com/ftCommunity/tx-pi/raw/master/dist/preparetxpidist.sh) script to the tx-pi.img:

```
preparetxpidist.sh tx-pi.img
# Download the script
wget https://github.com/ftCommunity/tx-pi/raw/master/dist/preparetxpidist.sh
# Make the script executable
chmod +x preparetxpidist.sh
# Create the TX-Pi image
sudo ./preparetxpidist.sh tx-pi.img
```

This script modifies the image. Do not apply the script to the same image twice!
Expand Down
18 changes: 17 additions & 1 deletion setup/tx-pi-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
#===============================================================================
set -ue
# Schema: YY.<release-number-within-the-year>.minor(.dev)?
TX_PI_VERSION='20.1.0'
# See <https://calver.org/> for details
TX_PI_VERSION='20.1.1'

DEBUG=false
ENABLE_SPLASH=true
Expand Down Expand Up @@ -114,6 +115,13 @@ else
header "Setup for Waveshare 3.2 inch screen"
fi

if [ "$HOSTNAME" == "raspberrypi" ]; then
msg "Found default hostname, change it to 'tx-pi'"
raspi-config nonint do_hostname tx-pi
rm -f /etc/ssh/ssh_host_*
ssh-keygen -A
fi

# Update Debian sources
if [ "$IS_BUSTER" = true ]; then
cat <<EOF > /etc/apt/sources.list.d/tx-pi.list
Expand Down Expand Up @@ -178,6 +186,10 @@ sed -i "s/#timeout 60;/timeout 10;/g" /etc/dhcp/dhclient.conf
# Reduce this time to 20 sec.
sed -i "s/#retry 60;/retry 20;/g" /etc/dhcp/dhclient.conf


header "Disable wait for network"
raspi-config nonint do_boot_wait 1

# ---------------------- display setup ----------------------
header "Install screen driver"

Expand Down Expand Up @@ -229,6 +241,7 @@ EOF

#-- Support for the TX-Pi HAT
# Enable I2c
header "Enable I2C"
raspi-config nonint do_i2c 0 dtparam=i2c_arm=on
sed -i "s/dtparam=i2c_arm=on/dtparam=i2c_arm=on\ndtparam=i2c_vc=on/g" /boot/config.txt
# Disable RTC
Expand Down Expand Up @@ -849,6 +862,9 @@ if [ ! -f "$shop_repositories" ]; then
EOF
fi

# Clean up if necessary
apt -y autoremove

msg "rebooting ..."

sync
Expand Down

0 comments on commit 8fd70ce

Please sign in to comment.