diff --git a/stage2/01-sys-tweaks/00-packages b/stage2/01-sys-tweaks/00-packages index 83ec74c..e768654 100644 --- a/stage2/01-sys-tweaks/00-packages +++ b/stage2/01-sys-tweaks/00-packages @@ -1,4 +1,4 @@ -ssh less fbset sudo psmisc strace ed ncdu crda +less fbset sudo psmisc strace ed ncdu crda vim console-setup keyboard-configuration debconf-utils parted unzip build-essential manpages-dev python bash-completion gdb pkg-config python-rpi.gpio v4l-utils @@ -6,26 +6,20 @@ avahi-daemon lua5.1 luajit hardlink ca-certificates curl -fake-hwclock nfs-common usbutils +fake-hwclock usbutils libraspberrypi-dev libraspberrypi-doc libfreetype6-dev dosfstools dphys-swapfile raspberrypi-sys-mods -pi-bluetooth apt-listchanges usb-modeswitch libpam-chksshpwd rpi-update libmtp-runtime -rsync -htop man-db policykit-1 -ssh-import-id rng-tools -ethtool vl805fw -ntfs-3g pciutils rpi-eeprom raspinfo diff --git a/stage2/01-sys-tweaks/00-packages-nr b/stage2/01-sys-tweaks/00-packages-nr deleted file mode 100644 index 5acef54..0000000 --- a/stage2/01-sys-tweaks/00-packages-nr +++ /dev/null @@ -1 +0,0 @@ -cifs-utils diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh old mode 100755 new mode 100644 index 8d28adc..54c675c --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -13,14 +13,7 @@ install -m 755 files/rc.local "${ROOTFS_DIR}/etc/" on_chroot << EOF systemctl disable hwclock.sh -systemctl disable nfs-common systemctl disable rpcbind -if [ "${ENABLE_SSH}" == "1" ]; then - systemctl enable ssh -else - systemctl disable ssh -fi -systemctl enable regenerate_ssh_host_keys EOF if [ "${USE_QEMU}" = "1" ]; then @@ -53,4 +46,3 @@ on_chroot << EOF usermod --pass='*' root EOF -rm -f "${ROOTFS_DIR}/etc/ssh/"ssh_host_*_key* diff --git a/stage2/02-net-tweaks/00-packages b/stage2/02-net-tweaks/00-packages deleted file mode 100644 index cc4a68e..0000000 --- a/stage2/02-net-tweaks/00-packages +++ /dev/null @@ -1,4 +0,0 @@ -wpasupplicant wireless-tools firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek -raspberrypi-net-mods -dhcpcd5 -net-tools diff --git a/stage2/02-net-tweaks/01-run.sh b/stage2/02-net-tweaks/01-run.sh deleted file mode 100755 index 0929755..0000000 --- a/stage2/02-net-tweaks/01-run.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -e - -install -v -d "${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d" -install -v -m 644 files/wait.conf "${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d/" - -install -v -d "${ROOTFS_DIR}/etc/wpa_supplicant" -install -v -m 600 files/wpa_supplicant.conf "${ROOTFS_DIR}/etc/wpa_supplicant/" - -if [ -v WPA_COUNTRY ]; then - echo "country=${WPA_COUNTRY}" >> "${ROOTFS_DIR}/etc/wpa_supplicant/wpa_supplicant.conf" -fi - -if [ -v WPA_ESSID ] && [ -v WPA_PASSWORD ]; then -on_chroot <> "${ROOTFS_DIR}/etc/wpa_supplicant/wpa_supplicant.conf" << EOL - -network={ - ssid="${WPA_ESSID}" - key_mgmt=NONE -} -EOL -fi - -# Disable wifi on 5GHz models -mkdir -p "${ROOTFS_DIR}/var/lib/systemd/rfkill/" -echo 1 > "${ROOTFS_DIR}/var/lib/systemd/rfkill/platform-3f300000.mmcnr:wlan" -echo 1 > "${ROOTFS_DIR}/var/lib/systemd/rfkill/platform-fe300000.mmcnr:wlan" diff --git a/stage2/02-net-tweaks/files/wait.conf b/stage2/02-net-tweaks/files/wait.conf deleted file mode 100644 index 595cc2d..0000000 --- a/stage2/02-net-tweaks/files/wait.conf +++ /dev/null @@ -1,3 +0,0 @@ -[Service] -ExecStart= -ExecStart=/usr/lib/dhcpcd5/dhcpcd -q -w diff --git a/stage2/02-net-tweaks/files/wpa_supplicant.conf b/stage2/02-net-tweaks/files/wpa_supplicant.conf deleted file mode 100644 index 0fc335e..0000000 --- a/stage2/02-net-tweaks/files/wpa_supplicant.conf +++ /dev/null @@ -1,2 +0,0 @@ -ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev -update_config=1