Skip to content

Commit e393980

Browse files
committed
Merge branch 'devel'
2 parents 1c98620 + 0d76789 commit e393980

File tree

4 files changed

+24
-10
lines changed

4 files changed

+24
-10
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## raspberrypi-ua-netinst v2.2.2
4+
5+
- build improvements
6+
7+
**Bugfixes:**
8+
9+
- fix compatibility with version 1 model B (with 256MB RAM)
10+
311
## raspberrypi-ua-netinst v2.2.1
412

513
- fix compatibility with onboard wireless lan on version 3 model B+ (with BCM2837B0)

build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ mv raspberrypi-ua-netinst.cpio.gz bootfs/raspberrypi-ua-netinst/
745745
echo "enable_uart=1"
746746
} >> bootfs/config.txt
747747

748-
echo "dwc_otg.lpm_enable=0 consoleblank=0 console=serial0,115200 console=tty1 elevator=deadline rootwait" > bootfs/cmdline.txt
748+
echo "rootfstype=ramfs dwc_otg.lpm_enable=0 consoleblank=0 console=serial0,115200 console=tty1 elevator=deadline rootwait" > bootfs/cmdline.txt
749749

750750
if [ ! -f bootfs/TIMEOUT ] ; then
751751
touch bootfs/TIMEOUT

scripts/opt/raspberrypi-ua-netinst/install.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -674,13 +674,6 @@ echo "=================================================="
674674
echo "https://github.com/FooDeas/raspberrypi-ua-netinst/"
675675
echo "=================================================="
676676

677-
echo -n "Starting HWRNG... "
678-
if /usr/sbin/rngd -r /dev/hwrng; then
679-
echo "OK"
680-
else
681-
echo "FAILED! (continuing to use the software RNG)"
682-
fi
683-
684677
echo -n "Mounting boot partition... "
685678
mount "${bootpartition}" /boot || fail
686679
echo "OK"
@@ -1546,6 +1539,13 @@ if [ "$(free -m | awk '/^Mem:/{print $2}')" -lt "384" ]; then
15461539
echo "OK"
15471540
fi
15481541

1542+
echo -n "Starting HWRNG... "
1543+
if /usr/sbin/rngd -r /dev/hwrng; then
1544+
echo "OK"
1545+
else
1546+
echo "FAILED! (continuing to use the software RNG)"
1547+
fi
1548+
15491549
if [ "${kernel_module}" = true ]; then
15501550
if [ "${rootfstype}" != "ext4" ]; then
15511551
mkdir -p /rootfs/etc/initramfs-tools

update.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,15 @@ packages_sha256=
122122
download_file() {
123123
local download_source=$1
124124
local download_target=$2
125+
local progress_option
126+
if wget --show-progress --version &> /dev/null; [ "${?}" -eq 2 ]; then
127+
progress_option=()
128+
else
129+
progress_option=("--show-progress")
130+
fi
125131
if [ -z "${download_target}" ]; then
126132
for i in $(seq 1 5); do
127-
if ! wget -q --show-progress --no-cache "${download_source}"; then
133+
if ! wget "${progress_option[@]}" -q --no-cache "${download_source}"; then
128134
if [ "${i}" != "5" ]; then
129135
sleep 5
130136
else
@@ -137,7 +143,7 @@ download_file() {
137143
done
138144
else
139145
for i in $(seq 1 5); do
140-
if ! wget -q --show-progress --no-cache -O "${download_target}" "${download_source}"; then
146+
if ! wget "${progress_option[@]}" -q --no-cache -O "${download_target}" "${download_source}"; then
141147
if [ "${i}" != "5" ]; then
142148
sleep 5
143149
else

0 commit comments

Comments
 (0)