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 1
1
# Changes
2
2
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
+
3
7
## 20.1.0 -- 2020-07-21
4
8
* Removed support for Debian Jessie (v8)
5
9
* 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.
9
9
```
10
10
# read image from SD card reader
11
11
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
12
16
# shrink image
13
17
sudo ./pishrink.sh -c tx-pi-fullsize.img tx-pi.img
14
18
```
15
19
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:
16
20
17
21
```
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
19
28
```
20
29
21
30
This script modifies the image. Do not apply the script to the same image twice!
Original file line number Diff line number Diff line change 27
27
# ===============================================================================
28
28
set -ue
29
29
# 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'
31
32
32
33
DEBUG=false
33
34
ENABLE_SPLASH=true
@@ -114,6 +115,13 @@ else
114
115
header " Setup for Waveshare 3.2 inch screen"
115
116
fi
116
117
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
+
117
125
# Update Debian sources
118
126
if [ " $IS_BUSTER " = true ]; then
119
127
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
178
186
# Reduce this time to 20 sec.
179
187
sed -i " s/#retry 60;/retry 20;/g" /etc/dhcp/dhclient.conf
180
188
189
+
190
+ header " Disable wait for network"
191
+ raspi-config nonint do_boot_wait 1
192
+
181
193
# ---------------------- display setup ----------------------
182
194
header " Install screen driver"
183
195
229
241
230
242
# -- Support for the TX-Pi HAT
231
243
# Enable I2c
244
+ header " Enable I2C"
232
245
raspi-config nonint do_i2c 0 dtparam=i2c_arm=on
233
246
sed -i " s/dtparam=i2c_arm=on/dtparam=i2c_arm=on\ndtparam=i2c_vc=on/g" /boot/config.txt
234
247
# Disable RTC
@@ -849,6 +862,9 @@ if [ ! -f "$shop_repositories" ]; then
849
862
EOF
850
863
fi
851
864
865
+ # Clean up if necessary
866
+ apt -y autoremove
867
+
852
868
msg " rebooting ..."
853
869
854
870
sync
You can’t perform that action at this time.
0 commit comments