Skip to content

Commit a084ffc

Browse files
authored
Update 16_pkg_install.sh
1 parent 9f571fb commit a084ffc

File tree

1 file changed

+15
-21
lines changed

1 file changed

+15
-21
lines changed

scripts.d/16_pkg_install.sh

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ INSTALL_PACKAGES=(
77
docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin # docker
88
# quicksynergy # dogi
99
matchbox-keyboard # virtual keyboard
10-
mdadm initramfs-tools rsync # for RAID1
10+
#mdadm initramfs-tools # for RAID1
1111
elinks links lynx # text mode web browser
1212
hostapd dnsmasq # rpi access point
1313
dos2unix # for converting dos characters to unix in autorunonce
1414
nodejs
15-
autossh
15+
autossh rsync htop mc gh sl jq bc nmap
1616
python3-pip python3-dbus
1717
bluez minicom bluez-tools python3-bluez libbluetooth-dev # bluetooth hotspot
1818
avahi-autoipd # for usb0
@@ -21,26 +21,20 @@ INSTALL_PACKAGES=(
2121
openvpn
2222
shadowsocks-libev proxychains4 # socks5 proxy
2323
libpam-google-authenticator # two factor authentication
24-
jq # for parsing json / treehouses command
2524
net-tools # netstat
2625
iproute2 # ss command
27-
nmap # network mapping package
28-
htop
2926
speedtest-cli # speedtest.net
30-
#python3-coral-enviro # Coral environmental board # breaks with new kernel
31-
bc # for memory command
27+
##python3-coral-enviro # Coral environmental board # breaks with new kernel
3228
libusb-dev # for usb.sh
3329
dnsutils
3430
uptimed # for measuring rpi uptime
3531
pagekite # tunnels command
36-
sl
37-
gh
3832
netcat-openbsd # for arm64
39-
mc ranger
33+
##ranger
4034
bats # unit testing
4135
##libhdf5-dev libatlas-base-dev libqt4-test # opencv # libjasper1
4236
imagemagick # tiv
43-
# python3-bcrypt python3-nacl # fix slow pip
37+
##python3-bcrypt python3-nacl # fix slow pip
4438
)
4539

4640
_op _chroot apt-mark hold linux-headers-rpi-v8
@@ -49,17 +43,17 @@ _op _chroot apt-mark hold linux-headers-rpi-2712
4943
_op _chroot apt-mark hold linux-image-rpi-2712
5044
_op _chroot apt-mark hold initramfs-tools
5145

52-
if [[ ${INSTALL_PACKAGES:-} ]] ; then
53-
echo "Installing ${INSTALL_PACKAGES[*]}"
54-
_apt install "${INSTALL_PACKAGES[@]}" # || die "Could not install ${INSTALL_PACKAGES[*]}"
55-
fi
46+
#if [[ ${INSTALL_PACKAGES:-} ]] ; then
47+
# echo "Installing ${INSTALL_PACKAGES[*]}"
48+
# _apt install "${INSTALL_PACKAGES[@]}" # || die "Could not install ${INSTALL_PACKAGES[*]}"
49+
#fi
5650

57-
#for package in "${INSTALL_PACKAGES[@]}"; do
58-
# _apt install -y "$package"
59-
# if [[ $? -ne 0 ]]; then
60-
# echo "Error installing $package. Continuing..."
61-
# fi
62-
#done
51+
for package in "${INSTALL_PACKAGES[@]}"; do
52+
_apt install -y "$package"
53+
if [[ $? -ne 0 ]]; then
54+
echo "Error installing $package. Continuing..."
55+
fi
56+
done
6357

6458
_op _chroot apt-mark hold tor #TODO bring back to upstream
6559
_op _chroot apt-mark unhold linux-headers-rpi-v8

0 commit comments

Comments
 (0)