File tree Expand file tree Collapse file tree 3 files changed +31
-2
lines changed
Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 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)
Original file line number Diff line number Diff 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
1111sudo 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
1317sudo ./pishrink.sh -c tx-pi-fullsize.img tx-pi.img
1418```
1519Afterwards, 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
2130This script modifies the image. Do not apply the script to the same image twice!
Original file line number Diff line number Diff line change 2727# ===============================================================================
2828set -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
3233DEBUG=false
3334ENABLE_SPLASH=true
@@ -114,6 +115,13 @@ else
114115 header " Setup for Waveshare 3.2 inch screen"
115116fi
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
118126if [ " $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.
179187sed -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 ----------------------
182194header " Install screen driver"
183195
229241
230242# -- Support for the TX-Pi HAT
231243# Enable I2c
244+ header " Enable I2C"
232245raspi-config nonint do_i2c 0 dtparam=i2c_arm=on
233246sed -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
849862EOF
850863fi
851864
865+ # Clean up if necessary
866+ apt -y autoremove
867+
852868msg " rebooting ..."
853869
854870sync
You can’t perform that action at this time.
0 commit comments