File tree 4 files changed +24
-10
lines changed
scripts/opt/raspberrypi-ua-netinst
4 files changed +24
-10
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
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
+
3
11
## raspberrypi-ua-netinst v2.2.1
4
12
5
13
- fix compatibility with onboard wireless lan on version 3 model B+ (with BCM2837B0)
Original file line number Diff line number Diff line change @@ -745,7 +745,7 @@ mv raspberrypi-ua-netinst.cpio.gz bootfs/raspberrypi-ua-netinst/
745
745
echo " enable_uart=1"
746
746
} >> bootfs/config.txt
747
747
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
749
749
750
750
if [ ! -f bootfs/TIMEOUT ] ; then
751
751
touch bootfs/TIMEOUT
Original file line number Diff line number Diff line change @@ -674,13 +674,6 @@ echo "=================================================="
674
674
echo " https://github.com/FooDeas/raspberrypi-ua-netinst/"
675
675
echo " =================================================="
676
676
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
-
684
677
echo -n " Mounting boot partition... "
685
678
mount " ${bootpartition} " /boot || fail
686
679
echo " OK"
@@ -1546,6 +1539,13 @@ if [ "$(free -m | awk '/^Mem:/{print $2}')" -lt "384" ]; then
1546
1539
echo " OK"
1547
1540
fi
1548
1541
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
+
1549
1549
if [ " ${kernel_module} " = true ]; then
1550
1550
if [ " ${rootfstype} " != " ext4" ]; then
1551
1551
mkdir -p /rootfs/etc/initramfs-tools
Original file line number Diff line number Diff line change @@ -122,9 +122,15 @@ packages_sha256=
122
122
download_file () {
123
123
local download_source=$1
124
124
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
125
131
if [ -z " ${download_target} " ]; then
126
132
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
128
134
if [ " ${i} " != " 5" ]; then
129
135
sleep 5
130
136
else
@@ -137,7 +143,7 @@ download_file() {
137
143
done
138
144
else
139
145
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
141
147
if [ " ${i} " != " 5" ]; then
142
148
sleep 5
143
149
else
You can’t perform that action at this time.
0 commit comments