Skip to content

Commit 8fd70ce

Browse files
committed
Release 20.1.1
2 parents 3871ce9 + bd5a2d5 commit 8fd70ce

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changes
22

3+
## 20.1.1 -- 2020-12-26
4+
* Change hostname to "tx-pi" if the host uses the default hostname "raspberrypi"
5+
* Remove obsolete packages automatically
6+
37
## 20.1.0 -- 2020-07-21
48
* Removed support for Debian Jessie (v8)
59
* Added support for Debian Buster (v10)

dist/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,22 @@ to create an installable SD card image from a working TX-Pi setup.
99
```
1010
# read image from SD card reader
1111
sudo cp /dev/sdb tx-pi-fullsize.img
12+
# Download the pishrink script
13+
wget https://raw.githubusercontent.com/harbaum/PiShrink/master/pishrink.sh
14+
# Make the script executable
15+
chmod +x pishrink.sh
1216
# shrink image
1317
sudo ./pishrink.sh -c tx-pi-fullsize.img tx-pi.img
1418
```
1519
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:
1620

1721
```
18-
preparetxpidist.sh tx-pi.img
22+
# Download the script
23+
wget https://github.com/ftCommunity/tx-pi/raw/master/dist/preparetxpidist.sh
24+
# Make the script executable
25+
chmod +x preparetxpidist.sh
26+
# Create the TX-Pi image
27+
sudo ./preparetxpidist.sh tx-pi.img
1928
```
2029

2130
This script modifies the image. Do not apply the script to the same image twice!

setup/tx-pi-setup.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
#===============================================================================
2828
set -ue
2929
# Schema: YY.<release-number-within-the-year>.minor(.dev)?
30-
TX_PI_VERSION='20.1.0'
30+
# See <https://calver.org/> for details
31+
TX_PI_VERSION='20.1.1'
3132

3233
DEBUG=false
3334
ENABLE_SPLASH=true
@@ -114,6 +115,13 @@ else
114115
header "Setup for Waveshare 3.2 inch screen"
115116
fi
116117

118+
if [ "$HOSTNAME" == "raspberrypi" ]; then
119+
msg "Found default hostname, change it to 'tx-pi'"
120+
raspi-config nonint do_hostname tx-pi
121+
rm -f /etc/ssh/ssh_host_*
122+
ssh-keygen -A
123+
fi
124+
117125
# Update Debian sources
118126
if [ "$IS_BUSTER" = true ]; then
119127
cat <<EOF > /etc/apt/sources.list.d/tx-pi.list
@@ -178,6 +186,10 @@ sed -i "s/#timeout 60;/timeout 10;/g" /etc/dhcp/dhclient.conf
178186
# Reduce this time to 20 sec.
179187
sed -i "s/#retry 60;/retry 20;/g" /etc/dhcp/dhclient.conf
180188

189+
190+
header "Disable wait for network"
191+
raspi-config nonint do_boot_wait 1
192+
181193
# ---------------------- display setup ----------------------
182194
header "Install screen driver"
183195

@@ -229,6 +241,7 @@ EOF
229241

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

865+
# Clean up if necessary
866+
apt -y autoremove
867+
852868
msg "rebooting ..."
853869

854870
sync

0 commit comments

Comments
 (0)